Update app.py
Browse files
app.py
CHANGED
|
@@ -105,7 +105,7 @@ def polish_prompt_hf(original_prompt, img_list):
|
|
| 105 |
Supports multiple images via img_list.
|
| 106 |
"""
|
| 107 |
# Ensure HF_TOKEN is set
|
| 108 |
-
api_key = os.environ.get("
|
| 109 |
if not api_key:
|
| 110 |
print("Warning: HF_TOKEN not set. Falling back to original prompt.")
|
| 111 |
return original_prompt
|
|
@@ -370,7 +370,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 370 |
""")
|
| 371 |
gr.Markdown("""
|
| 372 |
[Learn more](https://github.com/QwenLM/Qwen-Image) about the Qwen-Image series.
|
| 373 |
-
This demo uses the new [Qwen-Image-Edit-2511](https://huggingface.co/Qwen/Qwen-Image-Edit-2511) with the [Qwen-Image-Lightning v2](https://huggingface.co/lightx2v/Qwen-Image-Lightning) LoRA
|
| 374 |
Try on [Qwen Chat](https://chat.qwen.ai/), or [download model](https://huggingface.co/Qwen/Qwen-Image-Edit-2509) to run locally with ComfyUI or diffusers.
|
| 375 |
""")
|
| 376 |
with gr.Row():
|
|
|
|
| 105 |
Supports multiple images via img_list.
|
| 106 |
"""
|
| 107 |
# Ensure HF_TOKEN is set
|
| 108 |
+
api_key = os.environ.get("inference_providers")
|
| 109 |
if not api_key:
|
| 110 |
print("Warning: HF_TOKEN not set. Falling back to original prompt.")
|
| 111 |
return original_prompt
|
|
|
|
| 370 |
""")
|
| 371 |
gr.Markdown("""
|
| 372 |
[Learn more](https://github.com/QwenLM/Qwen-Image) about the Qwen-Image series.
|
| 373 |
+
This demo uses the new [Qwen-Image-Edit-2511](https://huggingface.co/Qwen/Qwen-Image-Edit-2511) with the [Qwen-Image-Lightning v2](https://huggingface.co/lightx2v/Qwen-Image-Lightning) LoRA for accelerated inference.
|
| 374 |
Try on [Qwen Chat](https://chat.qwen.ai/), or [download model](https://huggingface.co/Qwen/Qwen-Image-Edit-2509) to run locally with ComfyUI or diffusers.
|
| 375 |
""")
|
| 376 |
with gr.Row():
|