Spaces:
Sleeping
Sleeping
Commit
·
5d6cd8d
1
Parent(s):
27719fc
Update app.py
Browse files
app.py
CHANGED
@@ -142,9 +142,11 @@ def inference(audio, sentiment_option):
|
|
142 |
result = whisper.decode(model, mel, options)
|
143 |
|
144 |
sentiment_results = analyze_sentiment(result.text)
|
|
|
|
|
145 |
sentiment_output = display_sentiment_results(sentiment_results, sentiment_option)
|
146 |
|
147 |
-
return lang.upper(), result.text, sentiment_output
|
148 |
|
149 |
title = """<h1 align="center">🎤 Multilingual ASR 💬</h1>"""
|
150 |
image_path = "thmbnail.jpg"
|
|
|
142 |
result = whisper.decode(model, mel, options)
|
143 |
|
144 |
sentiment_results = analyze_sentiment(result.text)
|
145 |
+
print(result.text)
|
146 |
+
prediction = predict(result.text)
|
147 |
sentiment_output = display_sentiment_results(sentiment_results, sentiment_option)
|
148 |
|
149 |
+
return lang.upper(), result.text, sentiment_output, prediction[0], prediction[1]
|
150 |
|
151 |
title = """<h1 align="center">🎤 Multilingual ASR 💬</h1>"""
|
152 |
image_path = "thmbnail.jpg"
|