Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -361,7 +361,7 @@ css = """
|
|
| 361 |
#col-container { margin: 0 auto; max-width: 1100px; }
|
| 362 |
"""
|
| 363 |
|
| 364 |
-
with gr.Blocks(
|
| 365 |
with gr.Column(elem_id="col-container"):
|
| 366 |
gr.HTML(
|
| 367 |
'<img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/image2.1/logo.png"'
|
|
@@ -405,8 +405,7 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=css, title="Qwen-Image-2.1") as dem
|
|
| 405 |
lines=4,
|
| 406 |
max_lines=20,
|
| 407 |
interactive=False,
|
| 408 |
-
|
| 409 |
-
placeholder="With prompt enhancement on, the rewritten prompt appears here.",
|
| 410 |
)
|
| 411 |
|
| 412 |
with gr.Accordion("Advanced settings", open=False):
|
|
@@ -485,4 +484,9 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=css, title="Qwen-Image-2.1") as dem
|
|
| 485 |
demo.queue(default_concurrency_limit=1, max_size=20)
|
| 486 |
|
| 487 |
if __name__ == "__main__":
|
| 488 |
-
demo.launch(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 361 |
#col-container { margin: 0 auto; max-width: 1100px; }
|
| 362 |
"""
|
| 363 |
|
| 364 |
+
with gr.Blocks(title="Qwen-Image-2.1") as demo:
|
| 365 |
with gr.Column(elem_id="col-container"):
|
| 366 |
gr.HTML(
|
| 367 |
'<img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/image2.1/logo.png"'
|
|
|
|
| 405 |
lines=4,
|
| 406 |
max_lines=20,
|
| 407 |
interactive=False,
|
| 408 |
+
placeholder="With prompt enhancement on, the rewritten prompt appears here.",
|
|
|
|
| 409 |
)
|
| 410 |
|
| 411 |
with gr.Accordion("Advanced settings", open=False):
|
|
|
|
| 484 |
demo.queue(default_concurrency_limit=1, max_size=20)
|
| 485 |
|
| 486 |
if __name__ == "__main__":
|
| 487 |
+
demo.launch(
|
| 488 |
+
mcp_server=True,
|
| 489 |
+
theme=gr.themes.Citrus(),
|
| 490 |
+
css=css,
|
| 491 |
+
allowed_paths=[EXAMPLE_DIR],
|
| 492 |
+
)
|