Spaces:
Runtime error
Runtime error
as
Browse files
app.py
CHANGED
@@ -8,13 +8,13 @@ import io
|
|
8 |
api = "https://7bb4-188-130-155-168.ngrok-free.app"
|
9 |
|
10 |
st.title("Stamp2vec")
|
11 |
-
col1, col2, col3 = st.columns(3)
|
12 |
|
13 |
input_image = st.file_uploader("insert image")
|
14 |
if(input_image):
|
15 |
image = Image.open(input_image)
|
16 |
st.header("Original")
|
17 |
st.image(input_image, use_column_width=True)
|
|
|
18 |
if col2.button("Get prediction"):
|
19 |
with st.spinner("Loading..."):
|
20 |
response = requests.post(os.path.join(api, "bounding-boxes/"), files = {"file": input_image.getvalue()})
|
|
|
8 |
api = "https://7bb4-188-130-155-168.ngrok-free.app"
|
9 |
|
10 |
st.title("Stamp2vec")
|
|
|
11 |
|
12 |
input_image = st.file_uploader("insert image")
|
13 |
if(input_image):
|
14 |
image = Image.open(input_image)
|
15 |
st.header("Original")
|
16 |
st.image(input_image, use_column_width=True)
|
17 |
+
col1, col2, col3 = st.columns(3)
|
18 |
if col2.button("Get prediction"):
|
19 |
with st.spinner("Loading..."):
|
20 |
response = requests.post(os.path.join(api, "bounding-boxes/"), files = {"file": input_image.getvalue()})
|