ngoctuanai commited on
Commit
5915fb7
1 Parent(s): 0ac5d6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -20,9 +20,9 @@ def generate_txt2img(current_model, prompt, is_negative=False, image_style="None
20
  API_URL = "https://api-inference.huggingface.co/models/runwayml/stable-diffusion-v1-5"
21
  elif current_model == "SDXL-1.0":
22
  API_URL = "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-xl-base-1.0"
23
- elif current_model == "OpenJourney-V4":
24
  API_URL = "https://api-inference.huggingface.co/models/prompthero/openjourney"
25
- elif current_model == "Anything-V4":
26
  API_URL = "https://api-inference.huggingface.co/models/xyn-ai/anything-v4.0"
27
  elif current_model == "Disney-Pixar-Cartoon":
28
  API_URL = "https://api-inference.huggingface.co/models/stablediffusionapi/disney-pixar-cartoon"
@@ -32,7 +32,7 @@ def generate_txt2img(current_model, prompt, is_negative=False, image_style="None
32
  API_URL = "https://api-inference.huggingface.co/models/openskyml/dalle-3-xl"
33
  elif current_model == "Midjourney-V4-XL":
34
  API_URL = "https://api-inference.huggingface.co/models/openskyml/midjourney-v4-xl"
35
- elif current_model == "Open-diffusion-v1":
36
  API_URL = "https://api-inference.huggingface.co/models/openskyml/open-diffusion-v1"
37
  elif current_model == "SSD-1B":
38
  API_URL = "https://api-inference.huggingface.co/models/segmind/SSD-1B"
 
20
  API_URL = "https://api-inference.huggingface.co/models/runwayml/stable-diffusion-v1-5"
21
  elif current_model == "SDXL-1.0":
22
  API_URL = "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-xl-base-1.0"
23
+ elif current_model == "OpenJourney":
24
  API_URL = "https://api-inference.huggingface.co/models/prompthero/openjourney"
25
+ elif current_model == "Anything-V4.0":
26
  API_URL = "https://api-inference.huggingface.co/models/xyn-ai/anything-v4.0"
27
  elif current_model == "Disney-Pixar-Cartoon":
28
  API_URL = "https://api-inference.huggingface.co/models/stablediffusionapi/disney-pixar-cartoon"
 
32
  API_URL = "https://api-inference.huggingface.co/models/openskyml/dalle-3-xl"
33
  elif current_model == "Midjourney-V4-XL":
34
  API_URL = "https://api-inference.huggingface.co/models/openskyml/midjourney-v4-xl"
35
+ elif current_model == "Open-Diffusion-V1":
36
  API_URL = "https://api-inference.huggingface.co/models/openskyml/open-diffusion-v1"
37
  elif current_model == "SSD-1B":
38
  API_URL = "https://api-inference.huggingface.co/models/segmind/SSD-1B"