Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -37,10 +37,10 @@ def check_file(file, suffix=''):
|
|
37 |
return file
|
38 |
|
39 |
def read_pretrain(path):
|
40 |
-
return torch.hub.load('ultralytics/yolov5', 'custom', path=path
|
41 |
|
|
|
42 |
with st.spinner('Loading the model...'):
|
43 |
-
default_pretrained = '2022.11.04-YOLOv5x6_1280-Hololive_Waifu_Classification.pt'
|
44 |
read_pretrain(default_pretrained)
|
45 |
|
46 |
st.title("Hololive Waifu Classification")
|
|
|
37 |
return file
|
38 |
|
39 |
def read_pretrain(path):
|
40 |
+
return torch.hub.load('ultralytics/yolov5', 'custom', path=path)
|
41 |
|
42 |
+
default_pretrained = '2022.11.04-YOLOv5x6_1280-Hololive_Waifu_Classification.pt'
|
43 |
with st.spinner('Loading the model...'):
|
|
|
44 |
read_pretrain(default_pretrained)
|
45 |
|
46 |
st.title("Hololive Waifu Classification")
|