Spaces:
Sleeping
Sleeping
app.py
CHANGED
@@ -321,13 +321,13 @@ def main():
|
|
321 |
with col2:
|
322 |
st.image(cropped_image, caption="Cropped Image", use_column_width=False, width=500)
|
323 |
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
|
332 |
# Launch the prediction when the user clicks the button
|
333 |
if st.button("Launch Prediction"):
|
|
|
321 |
with col2:
|
322 |
st.image(cropped_image, caption="Cropped Image", use_column_width=False, width=500)
|
323 |
|
324 |
+
# Display the options for the user to set the score threshold and scale
|
325 |
+
if cropped_image is not None:
|
326 |
+
col1, col2, col3 = st.columns(3)
|
327 |
+
with col1:
|
328 |
+
score_threshold = st.slider("Set score threshold for prediction", min_value=0.0, max_value=1.0, value=0.5, step=0.05)
|
329 |
+
with col2:
|
330 |
+
st.session_state.scale = st.slider("Set scale for XML file", min_value=0.1, max_value=2.0, value=1.0, step=0.1)
|
331 |
|
332 |
# Launch the prediction when the user clicks the button
|
333 |
if st.button("Launch Prediction"):
|