Forgot variable did not exist
Browse files
app.py
CHANGED
@@ -226,12 +226,14 @@ with demo:
|
|
226 |
|
227 |
img_but = gr.Button('Detect', interactive="False")
|
228 |
|
229 |
-
options.change(fn=changing, inputs=[img_but, url_but, options.value, output_text1])
|
230 |
|
231 |
# output_text1 = gr.outputs.Textbox(label="Confidence Values")
|
232 |
output_text1 = gr.components.Textbox(label="Confidence Values")
|
233 |
# https://huggingface.co/spaces/vishnun/CLIPnCROP/blob/main/app.py -- Got .outputs. from this
|
234 |
|
|
|
|
|
|
|
235 |
url_but.click(detect_objects,inputs=[options,url_input,img_input,slider_input],outputs=[img_output_from_url, output_text1],queue=True)
|
236 |
img_but.click(detect_objects,inputs=[options,url_input,img_input,slider_input],outputs=[img_output_from_upload, output_text1],queue=True)
|
237 |
# url_but.click(detect_objects,inputs=[options,url_input,img_input,slider_input],outputs=[img_output_from_url, _],queue=True)
|
|
|
226 |
|
227 |
img_but = gr.Button('Detect', interactive="False")
|
228 |
|
|
|
229 |
|
230 |
# output_text1 = gr.outputs.Textbox(label="Confidence Values")
|
231 |
output_text1 = gr.components.Textbox(label="Confidence Values")
|
232 |
# https://huggingface.co/spaces/vishnun/CLIPnCROP/blob/main/app.py -- Got .outputs. from this
|
233 |
|
234 |
+
options.change(fn=changing, inputs=[img_but, url_but, options.value, output_text1])
|
235 |
+
|
236 |
+
|
237 |
url_but.click(detect_objects,inputs=[options,url_input,img_input,slider_input],outputs=[img_output_from_url, output_text1],queue=True)
|
238 |
img_but.click(detect_objects,inputs=[options,url_input,img_input,slider_input],outputs=[img_output_from_upload, output_text1],queue=True)
|
239 |
# url_but.click(detect_objects,inputs=[options,url_input,img_input,slider_input],outputs=[img_output_from_url, _],queue=True)
|