Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
| 186 |
-
|
|
|
|
| 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)
|