Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,8 @@ import json
|
|
10 |
API_URLS = {
|
11 |
"SDXL 1.0": "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-xl-base-1.0",
|
12 |
"SD 3.5": "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-3.5-large",
|
13 |
-
"SD 3.5 Turbo": "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-3.5-large-turbo"
|
|
|
14 |
}
|
15 |
API_TOKEN = os.getenv("HF_READ_TOKEN")
|
16 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
@@ -76,7 +77,7 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
|
|
76 |
method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "Euler", "Euler a", "Heun", "DDIM"])
|
77 |
strength = gr.Slider(label="Strength", value=0.7, minimum=0, maximum=1, step=0.001)
|
78 |
seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)
|
79 |
-
model = gr.Radio(label="Model", value="SD 3.5 Turbo", choices=["SDXL 1.0", "SD 3.5", "SD 3.5 Turbo"])
|
80 |
|
81 |
with gr.Row():
|
82 |
text_button = gr.Button("Run", variant='primary', elem_id="gen-button")
|
|
|
10 |
API_URLS = {
|
11 |
"SDXL 1.0": "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-xl-base-1.0",
|
12 |
"SD 3.5": "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-3.5-large",
|
13 |
+
"SD 3.5 Turbo": "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-3.5-large-turbo",
|
14 |
+
"Fluently XL Final": "https://api-inference.huggingface.co/models/fluently/Fluently-XL-Final"
|
15 |
}
|
16 |
API_TOKEN = os.getenv("HF_READ_TOKEN")
|
17 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
|
|
77 |
method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "Euler", "Euler a", "Heun", "DDIM"])
|
78 |
strength = gr.Slider(label="Strength", value=0.7, minimum=0, maximum=1, step=0.001)
|
79 |
seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)
|
80 |
+
model = gr.Radio(label="Model", value="SD 3.5 Turbo", choices=["SDXL 1.0", "SD 3.5", "SD 3.5 Turbo", "Fluently XL Final"])
|
81 |
|
82 |
with gr.Row():
|
83 |
text_button = gr.Button("Run", variant='primary', elem_id="gen-button")
|