linoyts HF Staff commited on
Commit
2ed2635
·
verified ·
1 Parent(s): 3c34e29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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("HF_TOKEN")
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 + [AoT compilation & FA3](https://huggingface.co/blog/zerogpu-aoti) 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():
 
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():