Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ from fastapi import FastAPI
|
|
| 22 |
app = FastAPI()
|
| 23 |
@app.get("/")
|
| 24 |
|
| 25 |
-
def query(prompt, negative_prompt, task, steps=35, sampler="DPM++ 2M Karras", cfg_scale=7, seed=-1,
|
| 26 |
result = {prompt:"prompt", negative_prompt:"negative_prompt", task:"task", steps:"steps", sampler:"sampler", cfg_scale:"cfg_scale", seed:"seed" , style_name:"style_name", width:"width" , height:"height" }
|
| 27 |
print(result)
|
| 28 |
try:
|
|
|
|
| 22 |
app = FastAPI()
|
| 23 |
@app.get("/")
|
| 24 |
|
| 25 |
+
def query(prompt, negative_prompt, task, style_name, steps=35, sampler="DPM++ 2M Karras", cfg_scale=7, seed=-1, width=896, height=1152):
|
| 26 |
result = {prompt:"prompt", negative_prompt:"negative_prompt", task:"task", steps:"steps", sampler:"sampler", cfg_scale:"cfg_scale", seed:"seed" , style_name:"style_name", width:"width" , height:"height" }
|
| 27 |
print(result)
|
| 28 |
try:
|