Spaces:
Build error
Build error
updated page content
Browse files
app.py
CHANGED
@@ -194,15 +194,15 @@ ids = {
|
|
194 |
# Download all models from drive
|
195 |
download_models(ids)
|
196 |
|
|
|
|
|
197 |
# Model selection
|
198 |
labels = load_labels()
|
199 |
-
model_path =
|
200 |
model = load_model(model_path=model_path) if model_path != '' else None
|
201 |
|
202 |
# Display example selection
|
203 |
-
index =
|
204 |
-
|
205 |
-
left, right = st.columns([3, 1])
|
206 |
|
207 |
# Get corresponding image and transform it
|
208 |
image = cv2.imread(f'data/validation/image/maksssksksss{str(index)}.jpg')
|
|
|
194 |
# Download all models from drive
|
195 |
download_models(ids)
|
196 |
|
197 |
+
left, right = st.columns([4, 2])
|
198 |
+
|
199 |
# Model selection
|
200 |
labels = load_labels()
|
201 |
+
model_path = right.selectbox('Choose a model', options=[k for k in ids], index=0)
|
202 |
model = load_model(model_path=model_path) if model_path != '' else None
|
203 |
|
204 |
# Display example selection
|
205 |
+
index = left.number_input('', min_value=0, max_value=852, value=495, help='Choose an image. ')
|
|
|
|
|
206 |
|
207 |
# Get corresponding image and transform it
|
208 |
image = cv2.imread(f'data/validation/image/maksssksksss{str(index)}.jpg')
|