ABIcode23 commited on
Commit
95aed41
·
verified ·
1 Parent(s): cd8f594

Upload 3 files

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,6 +13,6 @@ def home():
13
  @app.get("/generate")
14
  def generate(text: str):
15
  # Use the pipeline to generate text from the given input text
16
- output = pipe(text)
17
  # Return the generated text in JSON response
18
  return {"output": output[0]['generated_text']}
 
13
  @app.get("/generate")
14
  def generate(text: str):
15
  # Use the pipeline to generate text from the given input text
16
+ output = pipe(text,max_new_tokens=100)
17
  # Return the generated text in JSON response
18
  return {"output": output[0]['generated_text']}