Ahsen Khaliq
commited on
Commit
•
71b54d1
1
Parent(s):
ad48d24
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ import gradio as gr
|
|
18 |
device = "cpu"
|
19 |
# Pick a pretrained model
|
20 |
os.system("wget https://huggingface.co/akhaliq/Omnivore/resolve/main/swinB_checkpoint.torch")
|
21 |
-
model = torch.hub.load("/home/user/app/omnivore/",source='local', model="
|
22 |
|
23 |
# Set to eval mode and move to desired device
|
24 |
model = model.to(device)
|
|
|
18 |
device = "cpu"
|
19 |
# Pick a pretrained model
|
20 |
os.system("wget https://huggingface.co/akhaliq/Omnivore/resolve/main/swinB_checkpoint.torch")
|
21 |
+
model = torch.hub.load("/home/user/app/omnivore/",source='local', model="omnivore_swinB",pretrained=True)
|
22 |
|
23 |
# Set to eval mode and move to desired device
|
24 |
model = model.to(device)
|