Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
| 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):
|