Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ def predict(image):
|
|
| 41 |
# Gradio UI
|
| 42 |
interface = gr.Interface(
|
| 43 |
fn=predict,
|
| 44 |
-
inputs=gr.Image(
|
| 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")
|