zachwormgoor@gmail.com commited on
Commit
eb84283
1 Parent(s): 15cb79c

attempted fix

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -93,7 +93,7 @@ def classify_image_url(url_text):
93
  # in case there is any error, invalid URL or invalid image, etc., not sure how Gradio will handle a runtime exception so catching it to be safe
94
  return { categories[0]: 0.0, categories[1]: 0.0 }
95
 
96
- intf_text_url = gr.Interface(fn=classify_image_url, inputs="text", outputs=label)#, examples=example_urls)
97
  # intf_text_url.launch(inline=False)
98
 
99
  # https://github.com/gradio-app/gradio/issues/450
 
93
  # in case there is any error, invalid URL or invalid image, etc., not sure how Gradio will handle a runtime exception so catching it to be safe
94
  return { categories[0]: 0.0, categories[1]: 0.0 }
95
 
96
+ intf_text_url = gr.Interface(fn=classify_image_url, inputs="text", outputs=gr.outputs.Label())#, examples=example_urls)
97
  # intf_text_url.launch(inline=False)
98
 
99
  # https://github.com/gradio-app/gradio/issues/450