fabianzeiher commited on
Commit
e93ec4d
·
1 Parent(s): a64dd7c

fixed syntax

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ def transcribe(audio):
35
  sentiment= sentiment[0]["label"]
36
  happy_path = "https://upload.wikimedia.org/wikipedia/commons/thumb/e/e0/SNice.svg/1200px-SNice.svg.png"
37
  sad_path = "https://upload.wikimedia.org/wikipedia/commons/thumb/4/42/Sad_smiley_yellow_simple.svg/240px-Sad_smiley_yellow_simple.svg.png"
38
- path = happy_path if sentiment == "POSITIVE" or sad_path
39
 
40
  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()}."
41
  return text_sv, text_raw, path, description
 
35
  sentiment= sentiment[0]["label"]
36
  happy_path = "https://upload.wikimedia.org/wikipedia/commons/thumb/e/e0/SNice.svg/1200px-SNice.svg.png"
37
  sad_path = "https://upload.wikimedia.org/wikipedia/commons/thumb/4/42/Sad_smiley_yellow_simple.svg/240px-Sad_smiley_yellow_simple.svg.png"
38
+ path = happy_path if sentiment == "POSITIVE" else sad_path
39
 
40
  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()}."
41
  return text_sv, text_raw, path, description