23A475R commited on
Commit
55e25a7
1 Parent(s): b9b804f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -2
app.py CHANGED
@@ -80,8 +80,17 @@ thumbnail = "https://raw.githubusercontent.com/gradio-app/hub-emotion-recognitio
80
 
81
  # gr.Interface(predict, inp, out, capture_session=True, title=title, thumbnail=thumbnail,
82
  # description=description).launch(inbrowser=True)
83
- gr.Interface(fn=predict, inputs=inp, outputs=out, title=title, thumbnail=thumbnail).launch()
84
-
 
 
 
 
 
 
 
 
 
85
 
86
 
87
 
 
80
 
81
  # gr.Interface(predict, inp, out, capture_session=True, title=title, thumbnail=thumbnail,
82
  # description=description).launch(inbrowser=True)
83
+ gr.Interface(fn=predict, inputs=inp, outputs=out,
84
+ examples = [
85
+ os.path.join(os.path.dirname(__file__), "images/chandler.jpeg"),
86
+ os.path.join(os.path.dirname(__file__), "images/janice.jpg"),
87
+ os.path.join(os.path.dirname(__file__), "images/joey.jpg"),
88
+ os.path.join(os.path.dirname(__file__), "images/phoebe.jpg"),
89
+ os.path.join(os.path.dirname(__file__), "images/rachel_monica.jpg"),
90
+ os.path.join(os.path.dirname(__file__), "images/ross.jpg"),
91
+ os.path.join(os.path.dirname(__file__), "images/gunther.jpg"),
92
+
93
+ ],title=title, thumbnail=thumbnail).launch()
94
 
95
 
96