nickmuchi commited on
Commit
3920891
·
1 Parent(s): 527b087

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -108,7 +108,7 @@ Links to HuggingFace Models:
108
  """
109
 
110
  models = ["nickmuchi/yolos-small-plant-disease-detection"]
111
- urls = ["https://api.time.com/wp-content/uploads/2020/03/hong-kong-mask-admiralty.jpg","https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ7wiGZhgAFuIpwFJzbpv8kUMM_Q3WaAWYf5NpSJduxvHQ7V2WnqZ0wMWS6cK5gvlfPGxc&usqp=CAU"]
112
 
113
  twitter_link = """
114
  [![](https://img.shields.io/twitter/follow/nickmuchi?label=@nickmuchi&style=social)](https://twitter.com/nickmuchi)
@@ -136,6 +136,7 @@ with demo:
136
  with gr.Column():
137
  url_input = gr.Textbox(lines=2,label='Enter valid image URL here..')
138
  original_image = gr.Image(shape=(750,750))
 
139
  with gr.Column():
140
  img_output_from_url = gr.Image(shape=(750,750))
141
 
 
108
  """
109
 
110
  models = ["nickmuchi/yolos-small-plant-disease-detection"]
111
+ urls = ["https://www.gardeningknowhow.com/wp-content/uploads/2013/07/early-blight-potatoes.jpg","https://ag.umass.edu/sites/ag.umass.edu/files/fact-sheets/images/cedar-apple_fig2.jpg"]
112
 
113
  twitter_link = """
114
  [![](https://img.shields.io/twitter/follow/nickmuchi?label=@nickmuchi&style=social)](https://twitter.com/nickmuchi)
 
136
  with gr.Column():
137
  url_input = gr.Textbox(lines=2,label='Enter valid image URL here..')
138
  original_image = gr.Image(shape=(750,750))
139
+ url_input.change(get_original_image, url_input, original_image)
140
  with gr.Column():
141
  img_output_from_url = gr.Image(shape=(750,750))
142