Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ class GenerationResponse(BaseModel):
|
|
13 |
@app.post("/generate", response_model=GenerationResponse)
|
14 |
def generate(req: GenerationRequest):
|
15 |
out = f"hello world: {req}"
|
16 |
-
return out
|
17 |
|
18 |
@app.get("/health")
|
19 |
def health():
|
|
|
13 |
@app.post("/generate", response_model=GenerationResponse)
|
14 |
def generate(req: GenerationRequest):
|
15 |
out = f"hello world: {req}"
|
16 |
+
return {"generated_text": out}
|
17 |
|
18 |
@app.get("/health")
|
19 |
def health():
|