Sebastiankay commited on
Commit
9b7575b
·
verified ·
1 Parent(s): 9573cef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -187,7 +187,7 @@ def process(Prompt, used_model, select_api, image_width, image_height, image_rat
187
 
188
  u_model = re.sub("api\d-", "", used_model.lower())
189
  API1_REQUEST_URL = f"{API1}{urllib.parse.quote(Prompt)}?model={u_model}&width={image_width}&height={image_height}&nologo=true&enhance=false&nofeed=true&seed={used_seed}"
190
- API2_REQUEST_URL = f"{API2_IMAGE}?prompt={urllib.parse.quote(Prompt)}&size={urllib.parse.quote(image_ratio)}&seed={used_seed}&model={u_model}"
191
  REQUEST_URL = API1_REQUEST_URL if used_model.lower().startswith("api1-") else API2_REQUEST_URL
192
  print("REQUEST URL:\n" + REQUEST_URL + "\n\nImagine API Request started")
193
 
 
187
 
188
  u_model = re.sub("api\d-", "", used_model.lower())
189
  API1_REQUEST_URL = f"{API1}{urllib.parse.quote(Prompt)}?model={u_model}&width={image_width}&height={image_height}&nologo=true&enhance=false&nofeed=true&seed={used_seed}"
190
+ API2_REQUEST_URL = f"{API2}?prompt={urllib.parse.quote(Prompt)}&size={urllib.parse.quote(image_ratio)}&seed={used_seed}&model={u_model}"
191
  REQUEST_URL = API1_REQUEST_URL if used_model.lower().startswith("api1-") else API2_REQUEST_URL
192
  print("REQUEST URL:\n" + REQUEST_URL + "\n\nImagine API Request started")
193