Spaces:
Runtime error
Runtime error
lxysl
commited on
Commit
·
3ed7148
1
Parent(s):
fbe8f3a
remove <br>
Browse files
app.py
CHANGED
|
@@ -515,6 +515,7 @@ def add_video(history, task_history, file):
|
|
| 515 |
convert_webm_to_mp4(file, new_file_name)
|
| 516 |
history = history + [((new_file_name,), None)]
|
| 517 |
task_history = task_history + [((new_file_name,), None)]
|
|
|
|
| 518 |
return history, task_history
|
| 519 |
|
| 520 |
|
|
@@ -529,6 +530,7 @@ def reset_state(task_history):
|
|
| 529 |
def stream_audio_output(history, task_history):
|
| 530 |
print("stream_audio_output", history, task_history)
|
| 531 |
text = history[-1][-1]
|
|
|
|
| 532 |
print("text", text)
|
| 533 |
if not text:
|
| 534 |
# import pdb;pdb.set_trace()
|
|
|
|
| 515 |
convert_webm_to_mp4(file, new_file_name)
|
| 516 |
history = history + [((new_file_name,), None)]
|
| 517 |
task_history = task_history + [((new_file_name,), None)]
|
| 518 |
+
print("add_video", history, task_history)
|
| 519 |
return history, task_history
|
| 520 |
|
| 521 |
|
|
|
|
| 530 |
def stream_audio_output(history, task_history):
|
| 531 |
print("stream_audio_output", history, task_history)
|
| 532 |
text = history[-1][-1]
|
| 533 |
+
text = text.replace("<br>", "")
|
| 534 |
print("text", text)
|
| 535 |
if not text:
|
| 536 |
# import pdb;pdb.set_trace()
|