m-ric commited on
Commit
e03824c
·
verified ·
1 Parent(s): 8bb28b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -182,8 +182,9 @@ def run_display(text):
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>", "")
188
  dataframe, _ = parse_llm_output(current_output)
189
  map = create_map_from_markers(dataframe)
 
182
  for event in generate_key_points(text):
183
  if event.choices:
184
  output = event.choices[0].delta.content
185
+ if output is not None:
186
+ current_output += output
187
+ yield None, "```text\n" + current_output + "\n```"
188
  current_output = current_output.replace("</s>", "")
189
  dataframe, _ = parse_llm_output(current_output)
190
  map = create_map_from_markers(dataframe)