Update app.py
Browse filesUpdated "launch" to include share and updated a gradio error -- Usage of gradio.outputs is deprecated, and will not be supported in the future, please import your components from gradio.components
output_text1 = gr.outputs. Textbox(label="Confidence Values")
app.py
CHANGED
@@ -167,7 +167,8 @@ with demo:
|
|
167 |
|
168 |
img_but = gr.Button('Detect')
|
169 |
|
170 |
-
output_text1 = gr.outputs.Textbox(label="Confidence Values")
|
|
|
171 |
# https://huggingface.co/spaces/vishnun/CLIPnCROP/blob/main/app.py -- Got .outputs. from this
|
172 |
|
173 |
url_but.click(detect_objects,inputs=[options,url_input,img_input,slider_input],outputs=[img_output_from_url, output_text1],queue=True)
|
@@ -187,4 +188,4 @@ with demo:
|
|
187 |
|
188 |
|
189 |
# demo.launch(enable_queue=True)
|
190 |
-
demo.launch()
|
|
|
167 |
|
168 |
img_but = gr.Button('Detect')
|
169 |
|
170 |
+
# output_text1 = gr.outputs.Textbox(label="Confidence Values")
|
171 |
+
output_text1 = gr.components.Textbox(label="Confidence Values")
|
172 |
# https://huggingface.co/spaces/vishnun/CLIPnCROP/blob/main/app.py -- Got .outputs. from this
|
173 |
|
174 |
url_but.click(detect_objects,inputs=[options,url_input,img_input,slider_input],outputs=[img_output_from_url, output_text1],queue=True)
|
|
|
188 |
|
189 |
|
190 |
# demo.launch(enable_queue=True)
|
191 |
+
demo.launch(share=True)
|