Redmind commited on
Commit
7cb6b3d
1 Parent(s): cb666d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- return transcription
 
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 transcription
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):