Spaces:
Paused
Paused
Update app.py
Browse files
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,
|
| 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 |
|