Ahsen Khaliq commited on
Commit
d6c4222
1 Parent(s): e7c1235

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -9,6 +9,12 @@ from PIL import Image
9
  import torch
10
  torch.hub.download_url_to_file('https://upload.wikimedia.org/wikipedia/commons/thumb/a/ab/Abraham_Lincoln_O-77_matte_collodion_print.jpg/1024px-Abraham_Lincoln_O-77_matte_collodion_print.jpg', 'lincoln.jpg')
11
  torch.hub.download_url_to_file('https://upload.wikimedia.org/wikipedia/commons/5/50/Albert_Einstein_%28Nobel%29.png', 'einstein.png')
 
 
 
 
 
 
12
 
13
  import cv2
14
  import glob
@@ -54,6 +60,9 @@ gr.Interface(
54
  article=article,
55
  examples=[
56
  ['lincoln.jpg'],
57
- ['einstein.png']
 
 
 
58
  ]
59
  ).launch(enable_queue=True,cache_examples=True)
 
9
  import torch
10
  torch.hub.download_url_to_file('https://upload.wikimedia.org/wikipedia/commons/thumb/a/ab/Abraham_Lincoln_O-77_matte_collodion_print.jpg/1024px-Abraham_Lincoln_O-77_matte_collodion_print.jpg', 'lincoln.jpg')
11
  torch.hub.download_url_to_file('https://upload.wikimedia.org/wikipedia/commons/5/50/Albert_Einstein_%28Nobel%29.png', 'einstein.png')
12
+ torch.hub.download_url_to_file('https://upload.wikimedia.org/wikipedia/commons/thumb/9/9d/Thomas_Edison2.jpg/1024px-Thomas_Edison2.jpg', 'edison.jpg')
13
+ torch.hub.download_url_to_file('https://upload.wikimedia.org/wikipedia/commons/thumb/a/a9/Henry_Ford_1888.jpg/1024px-Henry_Ford_1888.jpg', 'Henry.jpg')
14
+ torch.hub.download_url_to_file('https://upload.wikimedia.org/wikipedia/commons/thumb/0/06/Frida_Kahlo%2C_by_Guillermo_Kahlo.jpg/800px-Frida_Kahlo%2C_by_Guillermo_Kahlo.jpg', 'Frida.jpg')
15
+
16
+
17
+
18
 
19
  import cv2
20
  import glob
 
60
  article=article,
61
  examples=[
62
  ['lincoln.jpg'],
63
+ ['einstein.png'],
64
+ ['edison.jpg'],
65
+ ['Henry.jpg'],
66
+ ['Frida.jpg']
67
  ]
68
  ).launch(enable_queue=True,cache_examples=True)