mangalnikhil21 commited on
Commit
52e57aa
1 Parent(s): ae258ee

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ def home():
17
  @app.get("/generate")
18
  def generate(text:str):
19
  ## use the pipeline from goven input text
20
- output = pipeline(text)
21
 
22
  ## return the generayed text in Json response
23
  return {"output":output[0]['generated_text']}
 
17
  @app.get("/generate")
18
  def generate(text:str):
19
  ## use the pipeline from goven input text
20
+ output = pipe(text)
21
 
22
  ## return the generayed text in Json response
23
  return {"output":output[0]['generated_text']}