Spaces:
Runtime error
Runtime error
fabianzeiher
commited on
Commit
·
adbbe3a
1
Parent(s):
03eb644
added new smiley links
Browse files
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/
|
37 |
-
sad_path = "https://upload.wikimedia.org/wikipedia/commons/thumb/
|
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()}."
|