Xintao commited on
Commit
b261577
1 Parent(s): b1fd1a9

update concurrency_count

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -123,7 +123,7 @@ If you have any question, please email 📧 `xintao.wang@outlook.com` or `xintao
123
  <center><img src='https://visitor-badge.glitch.me/badge?page_id=akhaliq_GFPGAN' alt='visitor badge'></center>
124
  <center><img src='https://visitor-badge.glitch.me/badge?page_id=Gradio_Xintao_GFPGAN' alt='visitor badge'></center>
125
  """
126
- gr.Interface(
127
  inference, [
128
  gr.inputs.Image(type="filepath", label="Input"),
129
  # gr.inputs.Radio(['v1.2', 'v1.3', 'v1.4', 'RestoreFormer', 'CodeFormer'], type="value", default='v1.4', label='version'),
@@ -140,4 +140,6 @@ gr.Interface(
140
  # examples=[['AI-generate.jpg', 'v1.4', 2, 50], ['lincoln.jpg', 'v1.4', 2, 50], ['Blake_Lively.jpg', 'v1.4', 2, 50],
141
  # ['10045.png', 'v1.4', 2, 50]]).launch()
142
  examples=[['AI-generate.jpg', 'v1.4', 2], ['lincoln.jpg', 'v1.4', 2], ['Blake_Lively.jpg', 'v1.4', 2],
143
- ['10045.png', 'v1.4', 2]]).launch()
 
 
 
123
  <center><img src='https://visitor-badge.glitch.me/badge?page_id=akhaliq_GFPGAN' alt='visitor badge'></center>
124
  <center><img src='https://visitor-badge.glitch.me/badge?page_id=Gradio_Xintao_GFPGAN' alt='visitor badge'></center>
125
  """
126
+ demo = gr.Interface(
127
  inference, [
128
  gr.inputs.Image(type="filepath", label="Input"),
129
  # gr.inputs.Radio(['v1.2', 'v1.3', 'v1.4', 'RestoreFormer', 'CodeFormer'], type="value", default='v1.4', label='version'),
 
140
  # examples=[['AI-generate.jpg', 'v1.4', 2, 50], ['lincoln.jpg', 'v1.4', 2, 50], ['Blake_Lively.jpg', 'v1.4', 2, 50],
141
  # ['10045.png', 'v1.4', 2, 50]]).launch()
142
  examples=[['AI-generate.jpg', 'v1.4', 2], ['lincoln.jpg', 'v1.4', 2], ['Blake_Lively.jpg', 'v1.4', 2],
143
+ ['10045.png', 'v1.4', 2]])
144
+ demo.queue(concurrency_count=4)
145
+ demo.launch()