itacaiunas commited on
Commit
1fd9f37
1 Parent(s): 41b7615

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -60,7 +60,7 @@ def inference(img):
60
 
61
 
62
  torch.hub.download_url_to_file('https://itacaiunas.com.br/api/exemplo1.jpg',
63
- 'demis.jpg')
64
  torch.hub.download_url_to_file('https://hai.stanford.edu/sites/default/files/styles/person_medium/public/2020-03/hai_1512feifei.png?itok=INFuLABp',
65
  'lifeifei.png')
66
  model = torch.hub.load('pytorch/vision:v0.6.0', 'deeplabv3_resnet101', pretrained=True)
@@ -68,11 +68,11 @@ model.eval()
68
 
69
  gr.Interface(
70
  inference,
71
- gr.inputs.Image(type="pil", label="Input"),
72
- gr.outputs.Image(type="pil", label="Output"),
73
  title=title,
74
  description=description,
75
  article=article,
76
- examples=[['demis.jpg'], ['lifeifei.png']],
77
  enable_queue=True
78
  ).launch(debug=False)
 
60
 
61
 
62
  torch.hub.download_url_to_file('https://itacaiunas.com.br/api/exemplo1.jpg',
63
+ 'exemplo1.jpg')
64
  torch.hub.download_url_to_file('https://hai.stanford.edu/sites/default/files/styles/person_medium/public/2020-03/hai_1512feifei.png?itok=INFuLABp',
65
  'lifeifei.png')
66
  model = torch.hub.load('pytorch/vision:v0.6.0', 'deeplabv3_resnet101', pretrained=True)
 
68
 
69
  gr.Interface(
70
  inference,
71
+ gr.inputs.Image(type="pil", label="Entrada"),
72
+ gr.outputs.Image(type="pil", label="Saída"),
73
  title=title,
74
  description=description,
75
  article=article,
76
+ examples=[['exemplo1.jpg'], ['lifeifei.png']],
77
  enable_queue=True
78
  ).launch(debug=False)