Another error
Browse files
app.py
CHANGED
@@ -185,9 +185,9 @@ demo = gr.Blocks(css=css)
|
|
185 |
|
186 |
|
187 |
def changing(b1, b2, inVal, outBox):
|
188 |
-
if inVal:
|
189 |
b1.interactive = "True"
|
190 |
-
b2.interactive = "
|
191 |
else:
|
192 |
outBox.value = "Select Dropdown"
|
193 |
|
@@ -231,7 +231,7 @@ with demo:
|
|
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
|
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)
|
|
|
185 |
|
186 |
|
187 |
def changing(b1, b2, inVal, outBox):
|
188 |
+
if inVal.value:
|
189 |
b1.interactive = "True"
|
190 |
+
b2.interactive = "True"
|
191 |
else:
|
192 |
outBox.value = "Select Dropdown"
|
193 |
|
|
|
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, 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)
|