Aybee5 commited on
Commit
b6cd669
·
verified ·
1 Parent(s): 957d8be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ def predict(image):
41
  # Gradio UI
42
  interface = gr.Interface(
43
  fn=predict,
44
- inputs=gr.Image(source="webcam", type="numpy", label="Capture or Upload Face"),
45
  outputs=[
46
  gr.Label(label="Predicted Emotion"),
47
  gr.JSON(label="Confidence Scores")
 
41
  # Gradio UI
42
  interface = gr.Interface(
43
  fn=predict,
44
+ inputs=gr.Image(sources=["webcam", "upload"], type="numpy", label="Capture or Upload Face"),
45
  outputs=[
46
  gr.Label(label="Predicted Emotion"),
47
  gr.JSON(label="Confidence Scores")