Arnav Raina commited on
Commit ·
a6c85c4
1
Parent(s): 1d8a0c8
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,7 @@ with gr.Blocks() as demo:
|
|
| 26 |
label="Upload Image",
|
| 27 |
file_types=[".jpg",".jpeg"],
|
| 28 |
file_count="multiple")
|
| 29 |
-
btn.upload(fn=detect, inputs=btn, outputs=gr.Label(), api_name="predict")
|
| 30 |
# put gr.Label() in upload(outputs=gr.Label())
|
| 31 |
|
| 32 |
demo.launch()
|
|
|
|
| 26 |
label="Upload Image",
|
| 27 |
file_types=[".jpg",".jpeg"],
|
| 28 |
file_count="multiple")
|
| 29 |
+
btn.upload(fn=detect, inputs=btn, outputs=[gr.Label()], api_name="predict")
|
| 30 |
# put gr.Label() in upload(outputs=gr.Label())
|
| 31 |
|
| 32 |
demo.launch()
|