Spaces:
Runtime error
Runtime error
app.py
CHANGED
@@ -23,7 +23,8 @@ if(input_image):
|
|
23 |
col1.write(prediction)
|
24 |
|
25 |
col2.subheader("Image")
|
26 |
-
|
|
|
27 |
col2.image(response.content, use_column_width=True)
|
28 |
|
29 |
arr = []
|
|
|
23 |
col1.write(prediction)
|
24 |
|
25 |
col2.subheader("Image")
|
26 |
+
with st.spinner("Loading..."):
|
27 |
+
response = requests.post(os.path.join(api, "image-w-boxes/"), files = {"file": input_image.getvalue()})
|
28 |
col2.image(response.content, use_column_width=True)
|
29 |
|
30 |
arr = []
|