zac commited on
Commit
cb4c476
·
1 Parent(s): b2a2110

Update app.py

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