Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ import gradio as gr
|
|
8 |
|
9 |
#model = torch.hub.load('huawei-noah/ghostnet', 'ghostnet_1x', pretrained=True)
|
10 |
torch.hub.download_url_to_file('https://huggingface.co/spaces/yuhe6/final_project/blob/main/CIFAR10_cnn.pth', '/tmp/temporary_file')
|
11 |
-
model = torch.hub.load('/tmp
|
12 |
|
13 |
model.eval()
|
14 |
# Download an example image from the pytorch website
|
|
|
8 |
|
9 |
#model = torch.hub.load('huawei-noah/ghostnet', 'ghostnet_1x', pretrained=True)
|
10 |
torch.hub.download_url_to_file('https://huggingface.co/spaces/yuhe6/final_project/blob/main/CIFAR10_cnn.pth', '/tmp/temporary_file')
|
11 |
+
model = torch.hub.load('/tmp', 'temporary_file', pretrained=True)
|
12 |
|
13 |
model.eval()
|
14 |
# Download an example image from the pytorch website
|