Ahsen Khaliq commited on
Commit
16924a4
1 Parent(s): cd95005

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -11,6 +11,9 @@ from torchvision import transforms
11
  import torchtext
12
 
13
 
 
 
 
14
 
15
  idx = 0
16
 
@@ -529,5 +532,9 @@ gr.Interface(
529
  gr.outputs.Image(type="file", label="Output"),
530
  title=title,
531
  description=description,
532
- article=article
 
 
 
 
533
  ).launch(debug=True)
 
11
  import torchtext
12
 
13
 
14
+ # Images
15
+ torch.hub.download_url_to_file('https://cdn.pixabay.com/photo/2021/08/04/14/16/tower-6521842_1280.jpg', 'tower.jpg')
16
+ torch.hub.download_url_to_file('https://cdn.pixabay.com/photo/2017/08/31/05/36/buildings-2699520_1280.jpg', 'city.jpg')
17
 
18
  idx = 0
19
 
 
532
  gr.outputs.Image(type="file", label="Output"),
533
  title=title,
534
  description=description,
535
+ article=article,
536
+ examples=[
537
+ ['city.jpg'],
538
+ ['tower.jpg']
539
+ ]
540
  ).launch(debug=True)