zac commited on
Commit
1a6142d
·
1 Parent(s): 31cf808

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ def generate_text(input_text, history):
24
  history =["init",input_text_with_history]
25
  for out in output:
26
  stream = copy.deepcopy(out)
27
- yield print(stream["choice"][0]["text"])
28
 
29
 
30
  demo = gr.ChatInterface(generate_text)
 
24
  history =["init",input_text_with_history]
25
  for out in output:
26
  stream = copy.deepcopy(out)
27
+ yield print(stream["choices"][0]["text"])
28
 
29
 
30
  demo = gr.ChatInterface(generate_text)