Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -772,8 +772,6 @@ with gr.Blocks(title="Qwen Image 2.1 Demo") as demo:
|
|
| 772 |
concurrency_limit=2,
|
| 773 |
)
|
| 774 |
|
| 775 |
-
demo.queue(default_concurrency_limit=10, max_size=20)
|
| 776 |
-
|
| 777 |
if __name__ == "__main__":
|
| 778 |
# 使用 os.path.realpath 解析真实路径,避免 NAS 软链接导致 Gradio 文件权限检查失败(404)
|
| 779 |
_script_dir = os.path.realpath(os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
| 772 |
concurrency_limit=2,
|
| 773 |
)
|
| 774 |
|
|
|
|
|
|
|
| 775 |
if __name__ == "__main__":
|
| 776 |
# 使用 os.path.realpath 解析真实路径,避免 NAS 软链接导致 Gradio 文件权限检查失败(404)
|
| 777 |
_script_dir = os.path.realpath(os.path.dirname(os.path.abspath(__file__)))
|