Ahsen Khaliq commited on
Commit
a396c3a
1 Parent(s): 57f0774

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -12,6 +12,8 @@ import torchtext
12
  from stat import ST_CTIME
13
  from datetime import datetime, timedelta
14
  import shutil
 
 
15
  # Images
16
  torch.hub.download_url_to_file('https://cdn.pixabay.com/photo/2021/08/04/14/16/tower-6521842_1280.jpg', 'tower.jpg')
17
  torch.hub.download_url_to_file('https://cdn.pixabay.com/photo/2017/08/31/05/36/buildings-2699520_1280.jpg', 'city.jpg')
@@ -498,5 +500,6 @@ gr.Interface(
498
  article=article,
499
  examples=[
500
  ['city.jpg'],
501
- ['tower.jpg']
 
502
  ]).launch(debug=True)
 
12
  from stat import ST_CTIME
13
  from datetime import datetime, timedelta
14
  import shutil
15
+
16
+ os.system('pip install gradio --upgrade')
17
  # Images
18
  torch.hub.download_url_to_file('https://cdn.pixabay.com/photo/2021/08/04/14/16/tower-6521842_1280.jpg', 'tower.jpg')
19
  torch.hub.download_url_to_file('https://cdn.pixabay.com/photo/2017/08/31/05/36/buildings-2699520_1280.jpg', 'city.jpg')
 
500
  article=article,
501
  examples=[
502
  ['city.jpg'],
503
+ ['tower.jpg'],
504
+ enable_queue=True
505
  ]).launch(debug=True)