zac commited on
Commit
4d3e3ef
·
1 Parent(s): 36c2270

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -26,8 +26,8 @@ def generate_text(input_text, history):
26
  for out in output:
27
  stream = copy.deepcopy(out)
28
  print(stream["choices"][0]["text"])
29
- input_text_with_history += stream["choices"][0]["text"]
30
- yield stream["choices"][0]["text"]
31
 
32
 
33
  history =["init",input_text_with_history]
 
26
  for out in output:
27
  stream = copy.deepcopy(out)
28
  print(stream["choices"][0]["text"])
29
+ temp += stream["choices"][0]["text"]
30
+ yield temp
31
 
32
 
33
  history =["init",input_text_with_history]