QnoM commited on
Commit
2d7a68e
·
verified ·
1 Parent(s): 8ea5abb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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
- return transcribe_and_summarize(audio_file, lang_choice, llm_choice)
 
 
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]