soiz commited on
Commit
692649e
·
verified ·
1 Parent(s): ee3fad3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ headers = {"Authorization": f"Bearer {API_TOKEN}"}
15
  timeout = 50000 # タイムアウトを300秒に設定
16
 
17
  # Function to query the API and return the generated image
18
- def query(prompt, negative_prompt="", steps=35, cfg_scale=7, sampler="DPM++ 2M Karras", seed=-1, strength=0.7, width=1024, height=1024, num_inference_steps=30, guidance_scale=7.5, num_return_sequences=1, top_k=50, top_p=0.9, eta=0.1):
19
  if not prompt:
20
  return None, "Prompt is required"
21
 
 
15
  timeout = 50000 # タイムアウトを300秒に設定
16
 
17
  # Function to query the API and return the generated image
18
+ def query(prompt, negative_prompt="", steps=35, cfg_scale=7, sampler="DPM++ 2M Karras", seed=-1, strength=0.7, width=1024, height=1024, num_inference_steps=30, guidance_scale=7.5, top_k=50, top_p=0.9, eta=0.1):
19
  if not prompt:
20
  return None, "Prompt is required"
21