fabianzeiher commited on
Commit
adbbe3a
·
1 Parent(s): 03eb644

added new smiley links

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,8 +33,8 @@ def transcribe(audio):
33
  sentiment= sa(text_sv)
34
  print(f"Sentiment result: {sentiment}")
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/1024px-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()}."
 
33
  sentiment= sa(text_sv)
34
  print(f"Sentiment result: {sentiment}")
35
  sentiment= sentiment[0]["label"]
36
+ happy_path = "https://upload.wikimedia.org/wikipedia/commons/thumb/7/79/Face-smile.svg/480px-Face-smile.svg.png"
37
+ sad_path = "https://upload.wikimedia.org/wikipedia/commons/thumb/0/06/Face-sad.svg/480px-Face-sad.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()}."