Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -239,7 +239,9 @@ def process_input(choice, audio_file=None, text_input=None, lang_choice=None, ll
|
|
| 239 |
tuple: The transcription (if audio) and the summary.
|
| 240 |
"""
|
| 241 |
if choice == "Audio":
|
| 242 |
-
|
|
|
|
|
|
|
| 243 |
elif choice == "Texte":
|
| 244 |
summary_result = summary(content=text_input, choice=llm_choice)
|
| 245 |
return "", summary_result[:-10]
|
|
|
|
| 239 |
tuple: The transcription (if audio) and the summary.
|
| 240 |
"""
|
| 241 |
if choice == "Audio":
|
| 242 |
+
if audio_file is not None:
|
| 243 |
+
return transcribe_and_summarize(audio_file, lang_choice, llm_choice)
|
| 244 |
+
return "Veuillez fournir une piste audio", ""
|
| 245 |
elif choice == "Texte":
|
| 246 |
summary_result = summary(content=text_input, choice=llm_choice)
|
| 247 |
return "", summary_result[:-10]
|