Spaces:
Runtime error
Runtime error
Commit ·
fb198fb
1
Parent(s): 7ec9d9e
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,4 +43,4 @@ def predict_fn(image):
|
|
| 43 |
# return dictionary whose keys are labels and values are confidences
|
| 44 |
return {'focused': focused_prob, 'distracted': distracted_prob}
|
| 45 |
|
| 46 |
-
gr.Interface(predict_fn, gr.inputs.Image(type="pil", label="Input Image"), outputs="label").launch()
|
|
|
|
| 43 |
# return dictionary whose keys are labels and values are confidences
|
| 44 |
return {'focused': focused_prob, 'distracted': distracted_prob}
|
| 45 |
|
| 46 |
+
gr.Interface(predict_fn, gr.inputs.Image(type="pil", label="Input Image"), outputs="label").launch(share=True)
|