yurapodk commited on
Commit
c0996a6
·
1 Parent(s): 8a55d9d
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -16,7 +16,6 @@ if(input_image):
16
  image = Image.open(input_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()})
@@ -31,6 +30,8 @@ if(input_image):
31
  response = ast.literal_eval(requests.post(os.path.join(api, "embeddings-from-cropped/"), files = {"file": output.getvalue()}).text)
32
  arr.extend(response["embedding"])
33
 
 
 
34
  col1.subheader("Prediction")
35
  col1.write(prediction)
36
 
 
16
  image = Image.open(input_image)
17
  st.header("Original")
18
  st.image(input_image, use_column_width=True)
 
19
  if st.button("Get prediction"):
20
  with st.spinner("Loading..."):
21
  response = requests.post(os.path.join(api, "bounding-boxes/"), files = {"file": input_image.getvalue()})
 
30
  response = ast.literal_eval(requests.post(os.path.join(api, "embeddings-from-cropped/"), files = {"file": output.getvalue()}).text)
31
  arr.extend(response["embedding"])
32
 
33
+ col1, col2, col3 = st.columns(3)
34
+
35
  col1.subheader("Prediction")
36
  col1.write(prediction)
37