kamran-r123 commited on
Commit
baf9a7f
·
1 Parent(s): 0ccd6a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -56,7 +56,7 @@ def generate(prompt, history, system_prompt, temperature=0.2, max_new_tokens=512
56
  output = ""
57
 
58
  for response in stream:
59
- output += response
60
  yield output
61
  return output
62
 
@@ -66,7 +66,7 @@ def generateS(prompt, history, system_prompt, temperature=0.2, max_new_tokens=51
66
  output = ""
67
 
68
  for response in stream:
69
- output += response.token.text
70
  yield output
71
  return output
72
 
 
56
  output = ""
57
 
58
  for response in stream:
59
+ output += response.token.text
60
  yield output
61
  return output
62
 
 
66
  output = ""
67
 
68
  for response in stream:
69
+ output += response
70
  yield output
71
  return output
72