Spaces:
Running
Running
Update app.py
Browse files
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=
|
|
|
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)
|