fabianzeiher commited on
Commit
f1e1b93
·
1 Parent(s): 9ae9008

fix lower method

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ def transcribe(audio):
36
  if sentiment == "NEGATIVE":
37
  path = "https://upload.wikimedia.org/wikipedia/commons/thumb/4/42/Sad_smiley_yellow_simple.svg/240px-Sad_smiley_yellow_simple.svg.png"
38
 
39
- description = f"The fine-tuned model took {time_fine} seconds while the original Whisper model took {time_raw} seconds.\nThe sentiment was evaluated form the fine-tuned model transcription as {lower(sentiment)}."
40
  return text_sv, text_raw, path, description
41
 
42
  iface = gr.Interface(
 
36
  if sentiment == "NEGATIVE":
37
  path = "https://upload.wikimedia.org/wikipedia/commons/thumb/4/42/Sad_smiley_yellow_simple.svg/240px-Sad_smiley_yellow_simple.svg.png"
38
 
39
+ description = f"The fine-tuned model took {time_fine} seconds while the original Whisper model took {time_raw} seconds.\nThe sentiment was evaluated from the fine-tuned model transcription as {sentiment.lower()}."
40
  return text_sv, text_raw, path, description
41
 
42
  iface = gr.Interface(