Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ def main():
|
|
| 15 |
url = st.text_input("URL to some image", "https://images.livemint.com/img/2022/08/01/600x338/Cat-andriyko-podilnyk-RCfi7vgJjUY-unsplash_1659328989095_1659328998370_1659328998370.jpg")
|
| 16 |
img = get_img_from_url(url)
|
| 17 |
# clicked==True only when the button is clicked
|
| 18 |
-
clicked = st.form_submit_button("
|
| 19 |
if clicked:
|
| 20 |
results = classifier(img)
|
| 21 |
st.json(results)
|
|
|
|
| 15 |
url = st.text_input("URL to some image", "https://images.livemint.com/img/2022/08/01/600x338/Cat-andriyko-podilnyk-RCfi7vgJjUY-unsplash_1659328989095_1659328998370_1659328998370.jpg")
|
| 16 |
img = get_img_from_url(url)
|
| 17 |
# clicked==True only when the button is clicked
|
| 18 |
+
clicked = st.form_submit_button("Classification")
|
| 19 |
if clicked:
|
| 20 |
results = classifier(img)
|
| 21 |
st.json(results)
|