wzhouxiff commited on
Commit
28474f3
1 Parent(s): f461022

modified app

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,7 +14,7 @@ if not os.path.exists('realesr-general-x4v3.pth'):
14
  os.system("wget https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.5.0/realesr-general-x4v3.pth -P .")
15
  if not os.path.exists('RestoreFormer.ckpt'):
16
  os.system("wget https://github.com/wzhouxiff/RestoreFormerPlusPlus/releases/download/v1.0.0/RestoreFormer.ckpt -P .")
17
- if not os.path.exists('RestoreFormer++.pth'):
18
  os.system("wget https://github.com/wzhouxiff/RestoreFormerPlusPlus/releases/download/v1.0.0/RestoreFormer++.ckpt -P .")
19
 
20
  # torch.hub.download_url_to_file(
@@ -129,4 +129,4 @@ demo = gr.Interface(
129
  # examples=[['AI-generate.jpg', 'v1.4', 2], ['lincoln.jpg', 'v1.4', 2], ['Blake_Lively.jpg', 'v1.4', 2],
130
  # ['10045.png', 'v1.4', 2]]
131
  )
132
- demo.queue().launch(share=True)
 
14
  os.system("wget https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.5.0/realesr-general-x4v3.pth -P .")
15
  if not os.path.exists('RestoreFormer.ckpt'):
16
  os.system("wget https://github.com/wzhouxiff/RestoreFormerPlusPlus/releases/download/v1.0.0/RestoreFormer.ckpt -P .")
17
+ if not os.path.exists('RestoreFormer++.ckpt'):
18
  os.system("wget https://github.com/wzhouxiff/RestoreFormerPlusPlus/releases/download/v1.0.0/RestoreFormer++.ckpt -P .")
19
 
20
  # torch.hub.download_url_to_file(
 
129
  # examples=[['AI-generate.jpg', 'v1.4', 2], ['lincoln.jpg', 'v1.4', 2], ['Blake_Lively.jpg', 'v1.4', 2],
130
  # ['10045.png', 'v1.4', 2]]
131
  )
132
+ demo.queue().launch()