Update app.py
Browse files
app.py
CHANGED
@@ -47,9 +47,9 @@ def predict_emotion_from_audio(wav_filepath):
|
|
47 |
print("Error predicting emotion:", e)
|
48 |
return None
|
49 |
|
50 |
-
|
51 |
# Define the API key for DeepAI Text to Image API
|
52 |
-
api_key = 'dee3e3f2-d5cf-474c-8072-bd6bea47e865'
|
53 |
|
54 |
# Predict emotion from audio
|
55 |
def get_predictions(audio_input):
|
|
|
47 |
print("Error predicting emotion:", e)
|
48 |
return None
|
49 |
|
50 |
+
api_key = os.getenv("DeepAI_api_key")
|
51 |
# Define the API key for DeepAI Text to Image API
|
52 |
+
#api_key = 'dee3e3f2-d5cf-474c-8072-bd6bea47e865'
|
53 |
|
54 |
# Predict emotion from audio
|
55 |
def get_predictions(audio_input):
|