K00B404 commited on
Commit
e1eefbe
1 Parent(s): 7ad62ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -9,8 +9,8 @@ from deep_translator import GoogleTranslator
9
  import json
10
 
11
  # Project by Nymbo
12
-
13
- API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-dev"
14
  API_TOKEN = os.getenv("HF_READ_TOKEN")
15
  headers = {"Authorization": f"Bearer {API_TOKEN}"}
16
  timeout = 100
@@ -87,4 +87,4 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
87
 
88
  text_button.click(query, inputs=[text_prompt, negative_prompt, steps, cfg, method, seed, strength], outputs=image_output)
89
 
90
- app.launch(show_api=False, share=False)
 
9
  import json
10
 
11
  # Project by Nymbo
12
+ API_URL="https://huggingface.co/spaces/multimodalart/FLUX.1-merged"
13
+ #API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-dev"
14
  API_TOKEN = os.getenv("HF_READ_TOKEN")
15
  headers = {"Authorization": f"Bearer {API_TOKEN}"}
16
  timeout = 100
 
87
 
88
  text_button.click(query, inputs=[text_prompt, negative_prompt, steps, cfg, method, seed, strength], outputs=image_output)
89
 
90
+ app.launch(show_api=True, share=False)