yurapodk commited on
Commit
8a55d9d
·
1 Parent(s): 79a290a
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -7,6 +7,8 @@ import io
7
 
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")
@@ -15,7 +17,7 @@ if(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()})
21
  prediction = ast.literal_eval(response.text)
 
7
 
8
  api = "https://7bb4-188-130-155-168.ngrok-free.app"
9
 
10
+
11
+ st.set_page_config(layout="wide")
12
  st.title("Stamp2vec")
13
 
14
  input_image = st.file_uploader("insert image")
 
17
  st.header("Original")
18
  st.image(input_image, use_column_width=True)
19
  col1, col2, col3 = st.columns(3)
20
+ if st.button("Get prediction"):
21
  with st.spinner("Loading..."):
22
  response = requests.post(os.path.join(api, "bounding-boxes/"), files = {"file": input_image.getvalue()})
23
  prediction = ast.literal_eval(response.text)