ultrin commited on
Commit
f337972
1 Parent(s): 39d9a64

change max_length

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -11,7 +11,7 @@ pipe = pipeline("text-generation", model="ai-forever/rugpt3large_based_on_gpt2")
11
 
12
  @app.get("/infer_t5")
13
  def t5(input):
14
- output = pipe(input, max_length=1000)
15
  return {"output": output[0]["generated_text"]}
16
 
17
  app.mount("/", StaticFiles(directory="static", html=True), name="static")
 
11
 
12
  @app.get("/infer_t5")
13
  def t5(input):
14
+ output = pipe(input, max_length=255)
15
  return {"output": output[0]["generated_text"]}
16
 
17
  app.mount("/", StaticFiles(directory="static", html=True), name="static")