trysem commited on
Commit
f1b185d
β€’
1 Parent(s): 4fa9105

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -15
app.py CHANGED
@@ -22,16 +22,16 @@ if not os.path.exists('RestoreFormer.pth'):
22
  if not os.path.exists('CodeFormer.pth'):
23
  os.system("wget https://github.com/TencentARC/GFPGAN/releases/download/v1.3.4/CodeFormer.pth -P .")
24
 
25
- torch.hub.download_url_to_file(
26
  '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',
27
  'lincoln.jpg')
28
- torch.hub.download_url_to_file(
29
  'https://user-images.githubusercontent.com/17445847/187400315-87a90ac9-d231-45d6-b377-38702bd1838f.jpg',
30
  'AI-generate.jpg')
31
- torch.hub.download_url_to_file(
32
  'https://user-images.githubusercontent.com/17445847/187400981-8a58f7a4-ef61-42d9-af80-bc6234cef860.jpg',
33
  'Blake_Lively.jpg')
34
- torch.hub.download_url_to_file(
35
  'https://user-images.githubusercontent.com/17445847/187401133-8a3bf269-5b4d-4432-b2f0-6d26ee1d3307.png',
36
  '10045.png')
37
 
@@ -112,15 +112,7 @@ title = "GFPGAN: Practical Face Restoration Algorithm"
112
  description = r"""😊
113
  """
114
  article = r"""
115
-
116
- [![download](https://img.shields.io/github/downloads/TencentARC/GFPGAN/total.svg)](https://github.com/TencentARC/GFPGAN/releases)
117
- [![GitHub Stars](https://img.shields.io/github/stars/TencentARC/GFPGAN?style=social)](https://github.com/TencentARC/GFPGAN)
118
- [![arXiv](https://img.shields.io/badge/arXiv-Paper-<COLOR>.svg)](https://arxiv.org/abs/2101.04061)
119
-
120
- If you have any question, please email πŸ“§ `xintao.wang@outlook.com` or `xintaowang@tencent.com`.
121
-
122
- <center><img src='https://visitor-badge.glitch.me/badge?page_id=akhaliq_GFPGAN' alt='visitor badge'></center>
123
- <center><img src='https://visitor-badge.glitch.me/badge?page_id=Gradio_Xintao_GFPGAN' alt='visitor badge'></center>
124
  """
125
  demo = gr.Interface(
126
  inference, [
@@ -138,7 +130,7 @@ demo = gr.Interface(
138
  article=article,
139
  # examples=[['AI-generate.jpg', 'v1.4', 2, 50], ['lincoln.jpg', 'v1.4', 2, 50], ['Blake_Lively.jpg', 'v1.4', 2, 50],
140
  # ['10045.png', 'v1.4', 2, 50]]).launch()
141
- examples=[['AI-generate.jpg', 'v1.4', 2], ['lincoln.jpg', 'v1.4', 2], ['Blake_Lively.jpg', 'v1.4', 2],
142
- ['10045.png', 'v1.4', 2]])
143
  demo.queue(concurrency_count=4)
144
  demo.launch()
 
22
  if not os.path.exists('CodeFormer.pth'):
23
  os.system("wget https://github.com/TencentARC/GFPGAN/releases/download/v1.3.4/CodeFormer.pth -P .")
24
 
25
+ # torch.hub.download_url_to_file(
26
  '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',
27
  'lincoln.jpg')
28
+ # torch.hub.download_url_to_file(
29
  'https://user-images.githubusercontent.com/17445847/187400315-87a90ac9-d231-45d6-b377-38702bd1838f.jpg',
30
  'AI-generate.jpg')
31
+ # torch.hub.download_url_to_file(
32
  'https://user-images.githubusercontent.com/17445847/187400981-8a58f7a4-ef61-42d9-af80-bc6234cef860.jpg',
33
  'Blake_Lively.jpg')
34
+ # torch.hub.download_url_to_file(
35
  'https://user-images.githubusercontent.com/17445847/187401133-8a3bf269-5b4d-4432-b2f0-6d26ee1d3307.png',
36
  '10045.png')
37
 
 
112
  description = r"""😊
113
  """
114
  article = r"""
115
+ 😊
 
 
 
 
 
 
 
 
116
  """
117
  demo = gr.Interface(
118
  inference, [
 
130
  article=article,
131
  # examples=[['AI-generate.jpg', 'v1.4', 2, 50], ['lincoln.jpg', 'v1.4', 2, 50], ['Blake_Lively.jpg', 'v1.4', 2, 50],
132
  # ['10045.png', 'v1.4', 2, 50]]).launch()
133
+ # examples=[['AI-generate.jpg', 'v1.4', 2], ['lincoln.jpg', 'v1.4', 2], ['Blake_Lively.jpg', 'v1.4', 2],
134
+ # ['10045.png', 'v1.4', 2]])
135
  demo.queue(concurrency_count=4)
136
  demo.launch()