Spaces:
Sleeping
Sleeping
Commit
·
8d32264
1
Parent(s):
cb7091d
Update app.py
Browse files
app.py
CHANGED
@@ -19,9 +19,9 @@ list_models = [
|
|
19 |
def generate_txt2img(current_model, prompt, is_negative=False, image_style="None style", steps=50, cfg_scale=7,
|
20 |
seed=None):
|
21 |
if current_model == "SD-1.5":
|
22 |
-
|
23 |
if current_model == "SDXL-1.0":
|
24 |
-
|
25 |
if current_model == "OpenJourney-V4":
|
26 |
API_URL = "https://api-inference.huggingface.co/models/prompthero/openjourney"
|
27 |
if current_model == "Anything-V4":
|
|
|
19 |
def generate_txt2img(current_model, prompt, is_negative=False, image_style="None style", steps=50, cfg_scale=7,
|
20 |
seed=None):
|
21 |
if current_model == "SD-1.5":
|
22 |
+
API_URL = "https://api-inference.huggingface.co/models/runwayml/stable-diffusion-v1-5"
|
23 |
if current_model == "SDXL-1.0":
|
24 |
+
API_URL = "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-xl-base-1.0"
|
25 |
if current_model == "OpenJourney-V4":
|
26 |
API_URL = "https://api-inference.huggingface.co/models/prompthero/openjourney"
|
27 |
if current_model == "Anything-V4":
|