Spaces:
Runtime error
Runtime error
Jac-Zac
commited on
Commit
Β·
016f785
1
Parent(s):
3f6e42c
adding eaxmples
Browse files- app.py +5 -5
- examples/00021.jpg +0 -0
- examples/00031.jpg +0 -0
- 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': '
|
108 |
-
'2': '
|
109 |
-
'3': '
|
110 |
}
|
111 |
-
|
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
![]() |