Gyu-min Nigel Lee commited on
Commit
0ff7839
1 Parent(s): dbd1d8f

revised pipe

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -29,9 +29,9 @@ def respond(
29
 
30
  output = pipe(
31
  messages,
32
- max_tokens=max_tokens,
33
- stream=True,
34
  temperature=temperature,
 
35
  top_p=top_p,
36
  )
37
  return output[0]["generated_text"]
 
29
 
30
  output = pipe(
31
  messages,
32
+ max_new_tokens=max_tokens,
 
33
  temperature=temperature,
34
+ return_full_text=False,
35
  top_p=top_p,
36
  )
37
  return output[0]["generated_text"]