gatesla commited on
Commit
f86c37f
1 Parent(s): 671d92f

Fixed inputs to be something different

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -185,10 +185,7 @@ demo = gr.Blocks(css=css)
185
 
186
 
187
  def changing(inVal, outBox):
188
- if inVal:
189
- return gr.Button('Detect', interactive=True), gr.Button('Detect', interactive=True)
190
- else:
191
- outBox.value = "Select Dropdown"
192
 
193
 
194
 
@@ -230,7 +227,7 @@ with demo:
230
  output_text1 = gr.components.Textbox(label="Confidence Values")
231
  # https://huggingface.co/spaces/vishnun/CLIPnCROP/blob/main/app.py -- Got .outputs. from this
232
 
233
- options.change(fn=changing, inputs=[options, output_text1], outputs=[img_but, url_but])
234
 
235
 
236
  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(inVal, outBox):
188
+ return gr.Button('Detect', interactive=True), gr.Button('Detect', interactive=True)
 
 
 
189
 
190
 
191
 
 
227
  output_text1 = gr.components.Textbox(label="Confidence Values")
228
  # https://huggingface.co/spaces/vishnun/CLIPnCROP/blob/main/app.py -- Got .outputs. from this
229
 
230
+ options.change(fn=changing, inputs=[], outputs=[img_but, url_but])
231
 
232
 
233
  url_but.click(detect_objects,inputs=[options,url_input,img_input,slider_input],outputs=[img_output_from_url, output_text1],queue=True)