Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,10 +21,10 @@ def whisper_openai_transcribe(audio_file):
|
|
21 |
|
22 |
# Get the transcribed text
|
23 |
transcribed_text = result['text']
|
24 |
-
return transcribed_text
|
25 |
|
26 |
|
27 |
-
|
|
|
28 |
|
29 |
def deepgram_transcribe(audio_file):
|
30 |
# Replace with actual Deepgram API transcription code
|
@@ -85,7 +85,7 @@ def assemblyai_transcribe(audio_file):
|
|
85 |
for result in sentiment_results:
|
86 |
file.write(f"Label: {result[0]}, Score: {result[1]}\n")
|
87 |
"""
|
88 |
-
return
|
89 |
|
90 |
# Sentiment analysis function
|
91 |
def analyze_sentiment(text):
|
|
|
21 |
|
22 |
# Get the transcribed text
|
23 |
transcribed_text = result['text']
|
|
|
24 |
|
25 |
|
26 |
+
|
27 |
+
return transcribed_text
|
28 |
|
29 |
def deepgram_transcribe(audio_file):
|
30 |
# Replace with actual Deepgram API transcription code
|
|
|
85 |
for result in sentiment_results:
|
86 |
file.write(f"Label: {result[0]}, Score: {result[1]}\n")
|
87 |
"""
|
88 |
+
return transcript.text
|
89 |
|
90 |
# Sentiment analysis function
|
91 |
def analyze_sentiment(text):
|