superbsaeed commited on
Commit
3666944
·
verified ·
1 Parent(s): e0c9cef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@ from huggingface_hub import login
7
 
8
  # --- AUTHENTICATION LAYER ---
9
  # This ensures the session is logged in BEFORE loading the model
10
- token = os.getenv("FLUX_API_TOKEN")
11
  if token:
12
  login(token=token)
13
  else:
@@ -56,4 +56,4 @@ with gr.Blocks() as demo:
56
  btn.click(fn=generate_image, inputs=[prompt, seed, width, height, steps], outputs=output_img)
57
 
58
  if __name__ == "__main__":
59
- demo.launch(share=True)
 
7
 
8
  # --- AUTHENTICATION LAYER ---
9
  # This ensures the session is logged in BEFORE loading the model
10
+ token = os.getenv("HF_TOKEN")
11
  if token:
12
  login(token=token)
13
  else:
 
56
  btn.click(fn=generate_image, inputs=[prompt, seed, width, height, steps], outputs=output_img)
57
 
58
  if __name__ == "__main__":
59
+ demo.launch()