Schmip commited on
Commit
5ab7dad
1 Parent(s): 30a921f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from transformers import pipeline
4
  app = FastAPI()
5
 
6
  #pipe = pipeline("text2text-generation", model="google/flan-t5-small")
7
- pipe = pipeline("text2text-generation", model="google/flan-t5-large")
8
 
9
  @app.get("/")
10
  def home():
 
4
  app = FastAPI()
5
 
6
  #pipe = pipeline("text2text-generation", model="google/flan-t5-small")
7
+ pipe = pipeline("text2text-generation", model="google/flan-t5-large", max_new_tokens=1000)
8
 
9
  @app.get("/")
10
  def home():