Spaces:
Paused
Paused
rick
commited on
bug fixed now... not done...
Browse files- pages/main.py +12 -4
pages/main.py
CHANGED
|
@@ -616,9 +616,7 @@ def main_page():
|
|
| 616 |
st.session_state.enable_tts_for_input_from_text_field,
|
| 617 |
system_prompt=system_prompt
|
| 618 |
)
|
| 619 |
-
|
| 620 |
-
del operation_prompt
|
| 621 |
-
del user_input
|
| 622 |
|
| 623 |
response_status.update(label=f'({target_language_name}) - {get_translation("traduction_en_cours")}', state="running", expanded=True)
|
| 624 |
for response_chunk in response_generator:
|
|
@@ -684,9 +682,19 @@ def main_page():
|
|
| 684 |
# check if `final_audio` var exists , if exists delete final_audio
|
| 685 |
if 'final_audio' in locals():
|
| 686 |
del final_audio
|
| 687 |
-
|
|
|
|
| 688 |
del audio_list
|
| 689 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 690 |
|
| 691 |
|
| 692 |
|
|
|
|
| 616 |
st.session_state.enable_tts_for_input_from_text_field,
|
| 617 |
system_prompt=system_prompt
|
| 618 |
)
|
| 619 |
+
|
|
|
|
|
|
|
| 620 |
|
| 621 |
response_status.update(label=f'({target_language_name}) - {get_translation("traduction_en_cours")}', state="running", expanded=True)
|
| 622 |
for response_chunk in response_generator:
|
|
|
|
| 682 |
# check if `final_audio` var exists , if exists delete final_audio
|
| 683 |
if 'final_audio' in locals():
|
| 684 |
del final_audio
|
| 685 |
+
|
| 686 |
+
if 'audio_list' in locals():
|
| 687 |
del audio_list
|
| 688 |
|
| 689 |
+
if 'system_prompt' in locals():
|
| 690 |
+
del system_prompt
|
| 691 |
+
|
| 692 |
+
if 'operation_prompt' in locals():
|
| 693 |
+
del operation_prompt
|
| 694 |
+
|
| 695 |
+
if 'user_input' in locals():
|
| 696 |
+
del user_input
|
| 697 |
+
|
| 698 |
|
| 699 |
|
| 700 |
|