Spaces:
Paused
Paused
rick commited on
amelioration UI/UX
Browse files
app.py
CHANGED
|
@@ -244,8 +244,8 @@ def main():
|
|
| 244 |
if "enable_tts_for_input_from_audio_record" not in st.session_state:
|
| 245 |
st.session_state["enable_tts_for_input_from_audio_record"] = True
|
| 246 |
|
| 247 |
-
if "tts_voice" not in st.session_state:
|
| 248 |
-
|
| 249 |
|
| 250 |
def init_process_mode():
|
| 251 |
# Configuration du mode de traduction si nécessaire
|
|
@@ -380,14 +380,16 @@ def main():
|
|
| 380 |
)
|
| 381 |
st.checkbox(
|
| 382 |
"Activer TTS pour les entrées textuelles",
|
| 383 |
-
key="enable_tts_for_input_from_text_field"
|
| 384 |
-
value=st.session_state.enable_tts_for_input_from_text_field
|
| 385 |
)
|
|
|
|
|
|
|
| 386 |
st.checkbox(
|
| 387 |
"Activer TTS pour les entrées audio",
|
| 388 |
-
key="enable_tts_for_input_from_audio_record"
|
| 389 |
-
|
| 390 |
-
|
|
|
|
| 391 |
|
| 392 |
# Point d'entrée de l'application
|
| 393 |
if __name__ == "__main__":
|
|
|
|
| 244 |
if "enable_tts_for_input_from_audio_record" not in st.session_state:
|
| 245 |
st.session_state["enable_tts_for_input_from_audio_record"] = True
|
| 246 |
|
| 247 |
+
#if "tts_voice" not in st.session_state:
|
| 248 |
+
# st.session_state.tts_voice = "onyx"
|
| 249 |
|
| 250 |
def init_process_mode():
|
| 251 |
# Configuration du mode de traduction si nécessaire
|
|
|
|
| 380 |
)
|
| 381 |
st.checkbox(
|
| 382 |
"Activer TTS pour les entrées textuelles",
|
| 383 |
+
key="enable_tts_for_input_from_text_field"
|
|
|
|
| 384 |
)
|
| 385 |
+
#value=st.session_state.enable_tts_for_input_from_text_field
|
| 386 |
+
#)
|
| 387 |
st.checkbox(
|
| 388 |
"Activer TTS pour les entrées audio",
|
| 389 |
+
key="enable_tts_for_input_from_audio_record"
|
| 390 |
+
)
|
| 391 |
+
#value=st.session_state.enable_tts_for_input_from_audio_record
|
| 392 |
+
#)
|
| 393 |
|
| 394 |
# Point d'entrée de l'application
|
| 395 |
if __name__ == "__main__":
|