Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -108,7 +108,7 @@ Links to HuggingFace Models:
|
|
108 |
"""
|
109 |
|
110 |
models = ["nickmuchi/yolos-small-plant-disease-detection"]
|
111 |
-
urls = ["https://
|
112 |
|
113 |
twitter_link = """
|
114 |
[](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://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 |
|