Jac-Zac commited on
Commit
016f785
Β·
1 Parent(s): 3f6e42c

adding eaxmples

Browse files
Files changed (4) hide show
  1. app.py +5 -5
  2. examples/00021.jpg +0 -0
  3. examples/00031.jpg +0 -0
  4. examples/00050.jpg +0 -0
app.py CHANGED
@@ -104,11 +104,11 @@ if uploaded_file is not None:
104
  image = Image.open(uploaded_file)
105
  else:
106
  image_choice_map = {
107
- '1': '../donut_example/copy/img_resized/test/00021.jpg',
108
- '2': '../donut_example/copy/img_resized/test/00031.jpg',
109
- '3': '../donut_example/copy/img_resized/test/00050.jpg',
110
  }
111
- image = Image.open(image_choice_map[image_choice])
112
 
113
 
114
  if information == "Low Res (1200 * 900) 5 epochs":
@@ -158,4 +158,4 @@ if st.button("Parse sample! 🐍"):
158
  st.info(f"Parsing πŸ“‘...")
159
  parsed_info, _ = run_prediction(image)
160
  st.text(f"\n{information}")
161
- st.json(parsed_info)
 
104
  image = Image.open(uploaded_file)
105
  else:
106
  image_choice_map = {
107
+ '1': 'examples/00021.jpg',
108
+ '2': 'examples/00031.jpg',
109
+ '3': 'examples/00050.jpg',
110
  }
111
+ image = Image.open(image_choice_map[image_choice])
112
 
113
 
114
  if information == "Low Res (1200 * 900) 5 epochs":
 
158
  st.info(f"Parsing πŸ“‘...")
159
  parsed_info, _ = run_prediction(image)
160
  st.text(f"\n{information}")
161
+ st.json(parsed_info)
examples/00021.jpg ADDED
examples/00031.jpg ADDED
examples/00050.jpg ADDED