sczhou commited on
Commit
d26b29f
1 Parent(s): e7e6717

upgrade gradio 4.37.2.

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +4 -3
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 🐼
4
  colorFrom: blue
5
  colorTo: green
6
  sdk: gradio
7
- sdk_version: 3.41.0
8
  app_file: app.py
9
  pinned: false
10
  ---
 
4
  colorFrom: blue
5
  colorTo: green
6
  sdk: gradio
7
+ sdk_version: 4.37.2
8
  app_file: app.py
9
  pinned: false
10
  ---
app.py CHANGED
@@ -285,7 +285,7 @@ demo = gr.Interface(
285
  gr.Number(value=2, label="Rescaling_Factor (up to 4)"),
286
  gr.Slider(0, 1, value=0.5, step=0.01, label='Codeformer_Fidelity (0 for better quality, 1 for better identity)')
287
  ], [
288
- gr.Image(type="numpy", label="Output").style(height='auto')
289
  ],
290
  title=title,
291
  description=description,
@@ -297,9 +297,10 @@ demo = gr.Interface(
297
  ['04.jpg', True, True, True, 2, 0.1],
298
  ['05.jpg', True, True, True, 2, 0.1],
299
  ['06.png', False, True, True, 1, 0.5]
300
- ])
 
 
301
 
302
  DEBUG = os.getenv('DEBUG') == '1'
303
- demo.queue(api_open=False, concurrency_count=2, max_size=10)
304
  demo.launch(debug=DEBUG)
305
  # demo.launch(debug=DEBUG, share=True)
 
285
  gr.Number(value=2, label="Rescaling_Factor (up to 4)"),
286
  gr.Slider(0, 1, value=0.5, step=0.01, label='Codeformer_Fidelity (0 for better quality, 1 for better identity)')
287
  ], [
288
+ gr.Image(type="numpy", label="Output")
289
  ],
290
  title=title,
291
  description=description,
 
297
  ['04.jpg', True, True, True, 2, 0.1],
298
  ['05.jpg', True, True, True, 2, 0.1],
299
  ['06.png', False, True, True, 1, 0.5]
300
+ ],
301
+ concurrency_limit=2
302
+ )
303
 
304
  DEBUG = os.getenv('DEBUG') == '1'
 
305
  demo.launch(debug=DEBUG)
306
  # demo.launch(debug=DEBUG, share=True)