Axzyl commited on
Commit
c3728b8
·
verified ·
1 Parent(s): e0218d3

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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():