Ahsen Khaliq commited on
Commit
fcdedfa
1 Parent(s): 7d56d23

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -8,8 +8,9 @@ import sys
8
  from subprocess import call
9
  import psutil
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
-
12
-
 
13
  def run_cmd(command):
14
  try:
15
  print(command)
@@ -49,7 +50,8 @@ gr.Interface(
49
  description=description,
50
  article=article,
51
  examples=[
52
- ['lincoln.jpg']
 
53
  ],
54
  enable_queue=True
55
  ).launch(debug=True)
 
8
  from subprocess import call
9
  import psutil
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
+
14
  def run_cmd(command):
15
  try:
16
  print(command)
 
50
  description=description,
51
  article=article,
52
  examples=[
53
+ ['lincoln.jpg'],
54
+ ['einstein.png']
55
  ],
56
  enable_queue=True
57
  ).launch(debug=True)