mayhug commited on
Commit
6d168eb
·
1 Parent(s): 4840e23

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,7 +9,7 @@ from torchvision import transforms
9
  model = torch.hub.load(
10
  "RF5/danbooru-pretrained",
11
  "resnet50",
12
- map_location=torch.device("cpu"),
13
  )
14
  model.eval()
15
 
@@ -53,4 +53,4 @@ threshold = inputs.Slider(
53
  labels = outputs.Label(type="confidence")
54
 
55
  interface = gradio.Interface(main, inputs=[image, threshold], outputs=[labels])
56
- interface.launch()
 
9
  model = torch.hub.load(
10
  "RF5/danbooru-pretrained",
11
  "resnet50",
12
+ map_location="cpu",
13
  )
14
  model.eval()
15
 
 
53
  labels = outputs.Label(type="confidence")
54
 
55
  interface = gradio.Interface(main, inputs=[image, threshold], outputs=[labels])
56
+ interface.launch()