Spaces:
Runtime error
Runtime error
fabianzeiher
commited on
Commit
•
70a0b9f
1
Parent(s):
adbbe3a
updated happy face link
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ 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/0/06/Face-sad.svg/480px-Face-sad.svg.png"
|
38 |
path = happy_path if sentiment == "POSITIVE" else sad_path
|
39 |
|
|
|
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/0/06/Face-sad.svg/480px-Face-sad.svg.png"
|
38 |
path = happy_path if sentiment == "POSITIVE" else sad_path
|
39 |
|