Spaces:
jfforero
/
Runtime error

jfforero commited on
Commit
366a4b5
·
verified ·
1 Parent(s): 94f6712

Update app.py

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