Arnav Raina
commited on
Commit
·
895bd1f
1
Parent(s):
5aacc81
Update app.py
Browse files
app.py
CHANGED
@@ -22,11 +22,12 @@ with gr.Blocks() as demo:
|
|
22 |
with gr.Row():
|
23 |
output=gr.File()
|
24 |
with gr.Row():
|
|
|
25 |
btn = gr.UploadButton(
|
26 |
label="Upload Image",
|
27 |
file_types=[".jpg",".jpeg"],
|
28 |
file_count="multiple")
|
29 |
-
btn.upload(fn=detect, inputs=btn, outputs=[gr.
|
30 |
# put gr.Label() in upload(outputs=gr.Label())
|
31 |
|
32 |
demo.launch()
|
|
|
22 |
with gr.Row():
|
23 |
output=gr.File()
|
24 |
with gr.Row():
|
25 |
+
# text = gr.Textbox(show_label=False, elem_id="result-textarea")
|
26 |
btn = gr.UploadButton(
|
27 |
label="Upload Image",
|
28 |
file_types=[".jpg",".jpeg"],
|
29 |
file_count="multiple")
|
30 |
+
btn.upload(fn=detect, inputs=btn, outputs=[gr.Textbox(show_label=False, elem_id="result-textarea")], api_name="predict")
|
31 |
# put gr.Label() in upload(outputs=gr.Label())
|
32 |
|
33 |
demo.launch()
|