Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -63,10 +63,11 @@ multi_label = st.selectbox('Multiple labels per box', (False, True))
|
|
63 |
agnostic = st.selectbox('Class-agnostic', (False, True))
|
64 |
amp = st.selectbox('Automatic Mixed Precision inference', (False, True))
|
65 |
max_det = st.number_input(label='Maximum number of detections per image', min_value=None, max_value=None, value=1000, step=1)
|
|
|
66 |
with st.spinner('Loading the model...'):
|
67 |
read_pretrain(default_pretrained)
|
68 |
|
69 |
-
if
|
70 |
with st.spinner('Loading the image...'):
|
71 |
image_path = check_file(image)
|
72 |
input_image = Image.open(image_path)
|
|
|
63 |
agnostic = st.selectbox('Class-agnostic', (False, True))
|
64 |
amp = st.selectbox('Automatic Mixed Precision inference', (False, True))
|
65 |
max_det = st.number_input(label='Maximum number of detections per image', min_value=None, max_value=None, value=1000, step=1)
|
66 |
+
clicked = st.button('Excute')
|
67 |
with st.spinner('Loading the model...'):
|
68 |
read_pretrain(default_pretrained)
|
69 |
|
70 |
+
if clicked:
|
71 |
with st.spinner('Loading the image...'):
|
72 |
image_path = check_file(image)
|
73 |
input_image = Image.open(image_path)
|