Spaces:
Runtime error
Runtime error
Commit
·
f1e1b93
1
Parent(s):
9ae9008
fix lower method
Browse files
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
|
| 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(
|