ngoctuanai commited on
Commit
dea231e
1 Parent(s): 686fe7a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -17,11 +17,11 @@ list_models = [
17
  ]
18
 
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
- elif current_model == "SDXL-1.0":
24
- API_URL = "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-xl-base-1.0"
25
  elif current_model == "OpenJourney-V4":
26
  API_URL = "https://api-inference.huggingface.co/models/prompthero/openjourney"
27
  elif current_model == "Anything-V4":
 
17
  ]
18
 
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
+ elif current_model == "SDXL-1.0":
24
+ API_URL = "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-xl-base-1.0"
25
  elif current_model == "OpenJourney-V4":
26
  API_URL = "https://api-inference.huggingface.co/models/prompthero/openjourney"
27
  elif current_model == "Anything-V4":