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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -180,10 +180,10 @@ def create_map_from_markers(dataframe):
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>", "")
188
  dataframe, _ = parse_llm_output(current_output)
189
  map = create_map_from_markers(dataframe)
 
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>", "")
188
  dataframe, _ = parse_llm_output(current_output)
189
  map = create_map_from_markers(dataframe)