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