Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,8 @@ if st.button('Excute'):
|
|
59 |
image_path = check_file(image)
|
60 |
input_image = Image.open(image_path)
|
61 |
with st.spinner('Loading the model...'):
|
62 |
-
model = torch.hub.load('ultralytics/yolov5', 'custom', path=os.path.join('pretrained', pretrained))
|
|
|
63 |
with st.spinner('Updating configuration...'):
|
64 |
model.conf = float(conf)
|
65 |
model.max_det = int(max_det)
|
|
|
59 |
image_path = check_file(image)
|
60 |
input_image = Image.open(image_path)
|
61 |
with st.spinner('Loading the model...'):
|
62 |
+
# model = torch.hub.load('ultralytics/yolov5', 'custom', path=os.path.join('pretrained', pretrained))
|
63 |
+
model = torch.hub.load('ultralytics/yolov5', 'custom', path=pretrained)
|
64 |
with st.spinner('Updating configuration...'):
|
65 |
model.conf = float(conf)
|
66 |
model.max_det = int(max_det)
|