Npps commited on
Commit
cc886e7
·
verified ·
1 Parent(s): 5506e5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -30,7 +30,7 @@ def predict_emotion(image):
30
  # Define the Gradio interface
31
  interface = gr.Interface(
32
  fn=predict_emotion, # Your prediction function
33
- inputs= gr.Image(type="pil", sources=[("upload","webcam")], label="Capture Image"), # Input options: upload or capture from webcam
34
  outputs="text", # Output as text displaying the predicted emotion
35
  title="Emotion Detection",
36
  description="Upload an image or capture one from your webcam to see the predicted emotion."
 
30
  # Define the Gradio interface
31
  interface = gr.Interface(
32
  fn=predict_emotion, # Your prediction function
33
+ inputs= gr.Image(type="pil", sources=["upload","webcam"], label="Capture Image"), # Input options: upload or capture from webcam
34
  outputs="text", # Output as text displaying the predicted emotion
35
  title="Emotion Detection",
36
  description="Upload an image or capture one from your webcam to see the predicted emotion."