Commit 52b9aea8 authored by novelailab's avatar novelailab

output instead of generation

parent 69307367
......@@ -65,7 +65,7 @@ class GenerationRequest(BaseModel):
seed: int = None
class GenerationOutput(BaseModel):
generation: List[str]
output: List[str]
class ErrorOutput(BaseModel):
error: str
......@@ -91,7 +91,7 @@ def generate(request: GenerationRequest):
process_time = time.perf_counter() - t
logger.info(f"Request took {process_time:0.3f} seconds")
return GenerationOutput(generation=images)
return GenerationOutput(output=images)
except Exception as e:
capture_exception(e)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment