yuhe6 commited on
Commit
e4a4b14
·
1 Parent(s): aca246d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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/', 'temporary_file', pretrained=True)
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