Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -179,7 +179,9 @@ def create_map_from_markers(dataframe):
|
|
179 |
|
180 |
def run_display(text):
|
181 |
current_output = ""
|
182 |
-
for
|
|
|
|
|
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>", "")
|