Spaces:
Runtime error
Runtime error
upgrade gradio 4.37.2.
Browse files
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 🐼
|
|
4 |
colorFrom: blue
|
5 |
colorTo: green
|
6 |
sdk: gradio
|
7 |
-
sdk_version:
|
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")
|
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)
|