akhaliq HF staff commited on
Commit
f17b4f0
1 Parent(s): c06152d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,7 +2,7 @@ import torch
2
 
3
  # Download an example image from the pytorch website
4
  import urllib
5
- url, filename = ("https://github.com/pytorch/hub/raw/master/images/dog.jpg", "dog.jpg")
6
  try: urllib.URLopener().retrieve(url, filename)
7
  except: urllib.request.urlretrieve(url, filename)
8
  # sample execution (requires torchvision)
@@ -59,5 +59,5 @@ gr.Interface(
59
  description=description,
60
  article=article,
61
  examples=[
62
- ["dog.jpg"]
63
  ]).launch()
2
 
3
  # Download an example image from the pytorch website
4
  import urllib
5
+ url, filename = ("https://pytorch.org/assets/images/deeplab1.png", "test.png")
6
  try: urllib.URLopener().retrieve(url, filename)
7
  except: urllib.request.urlretrieve(url, filename)
8
  # sample execution (requires torchvision)
59
  description=description,
60
  article=article,
61
  examples=[
62
+ ["test.png"]
63
  ]).launch()