Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ import json
|
|
10 |
|
11 |
# Project by TotoB12
|
12 |
|
13 |
-
API_URL = "https://api-inference.huggingface.co/models/
|
14 |
API_TOKEN = os.getenv("HF_READ_TOKEN")
|
15 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
16 |
timeout = 100
|
@@ -86,8 +86,8 @@ with gr.Blocks(css=css) as app:
|
|
86 |
with gr.Accordion("Advanced Settings", open=False):
|
87 |
negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="What should not be in the image", value="(deformed, distorted, disfigured), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, misspellings, typos", lines=3, elem_id="negative-prompt-text-input")
|
88 |
with gr.Row():
|
89 |
-
width = gr.Slider(label="Width", value=1024, minimum=64, maximum=
|
90 |
-
height = gr.Slider(label="Height", value=1024, minimum=64, maximum=
|
91 |
steps = gr.Slider(label="Sampling steps", value=4, minimum=1, maximum=100, step=1)
|
92 |
cfg = gr.Slider(label="CFG Scale", value=7, minimum=1, maximum=20, step=1)
|
93 |
strength = gr.Slider(label="Strength", value=0.7, minimum=0, maximum=1, step=0.001)
|
|
|
10 |
|
11 |
# Project by TotoB12
|
12 |
|
13 |
+
API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-schnell"
|
14 |
API_TOKEN = os.getenv("HF_READ_TOKEN")
|
15 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
16 |
timeout = 100
|
|
|
86 |
with gr.Accordion("Advanced Settings", open=False):
|
87 |
negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="What should not be in the image", value="(deformed, distorted, disfigured), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, misspellings, typos", lines=3, elem_id="negative-prompt-text-input")
|
88 |
with gr.Row():
|
89 |
+
width = gr.Slider(label="Width", value=1024, minimum=64, maximum=4096, step=32)
|
90 |
+
height = gr.Slider(label="Height", value=1024, minimum=64, maximum=4096, step=32)
|
91 |
steps = gr.Slider(label="Sampling steps", value=4, minimum=1, maximum=100, step=1)
|
92 |
cfg = gr.Slider(label="CFG Scale", value=7, minimum=1, maximum=20, step=1)
|
93 |
strength = gr.Slider(label="Strength", value=0.7, minimum=0, maximum=1, step=0.001)
|