Spaces:
Paused
Paused
Update app.py
Browse files14 unmodified lines1516171819202114 unmodified linestimeout = 50000 # タイムアウトを300秒に設定# Function to query the API and return the generated imagedef 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):if not prompt:return None, "Prompt is required"14 unmodified lines1516171819202114 unmodified linestimeout = 50000 # タイムアウトを300秒に設定# Function to query the API and return the generated imagedef 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):if not prompt:return None, "Prompt is required"
app.py+1-1