vilarin commited on
Commit
75ba600
1 Parent(s): 9074f74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -46,7 +46,7 @@ model = model.eval()
46
  def stream_chat(message: str, history: list, temperature: float, max_new_tokens: int, top_p: float, top_k: int, penalty: float):
47
  print(history)
48
 
49
- resp, hist = model.stream_chat(
50
  tokenizer,
51
  query = message,
52
  history = history,
@@ -56,7 +56,7 @@ def stream_chat(message: str, history: list, temperature: float, max_new_tokens:
56
  top_k = top_k,
57
  temperature = temperature,
58
  )
59
-
60
  yield resp
61
 
62
 
 
46
  def stream_chat(message: str, history: list, temperature: float, max_new_tokens: int, top_p: float, top_k: int, penalty: float):
47
  print(history)
48
 
49
+ resp = model.stream_chat(
50
  tokenizer,
51
  query = message,
52
  history = history,
 
56
  top_k = top_k,
57
  temperature = temperature,
58
  )
59
+ print(resp)
60
  yield resp
61
 
62