xen2003 commited on
Commit
667282c
·
verified ·
1 Parent(s): 1c3a580

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -55,8 +55,11 @@ emotion_trend_path = "emotiont_trend.png"
55
  emotion_heatmap_path = "emotion_heatmap.png"
56
  emotion_pie_chart_path = "emotion_pie_chart.png"
57
 
 
 
 
58
  # Initialize Groq Client
59
- grog_client = groq.Groq(api_key=GROQ_API_KEY)
60
 
61
  # MAIN function to convert audio into text using Groq Whisper speech-to-text service
62
  def transcribe_audio(audio_file_path):
 
55
  emotion_heatmap_path = "emotion_heatmap.png"
56
  emotion_pie_chart_path = "emotion_pie_chart.png"
57
 
58
+ # Get the key to access Groq
59
+ API_KEY = os.environ.get("GROQ_API_KEY", "No Key Found")
60
+
61
  # Initialize Groq Client
62
+ grog_client = groq.Groq(api_key=API_KEY)
63
 
64
  # MAIN function to convert audio into text using Groq Whisper speech-to-text service
65
  def transcribe_audio(audio_file_path):