m-ric commited on
Commit
1bbc3a6
·
verified ·
1 Parent(s): d9ade11

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -179,7 +179,9 @@ def create_map_from_markers(dataframe):
179
 
180
  def run_display(text):
181
  current_output = ""
182
- for output in generate_key_points(text):
 
 
183
  current_output += output
184
  yield None, "```text\n" + current_output + "\n```"
185
  current_output = current_output.replace("</s>", "")
 
179
 
180
  def run_display(text):
181
  current_output = ""
182
+ for event in generate_key_points(text):
183
+ if event.choices:
184
+ output = event.choices[0].delta.content
185
  current_output += output
186
  yield None, "```text\n" + current_output + "\n```"
187
  current_output = current_output.replace("</s>", "")