Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from openai import OpenAI
|
|
3 |
import os
|
4 |
|
5 |
# AIML API settings
|
6 |
-
aiml_api_key = os.getenv("
|
7 |
client = OpenAI(api_key=aiml_api_key)
|
8 |
|
9 |
# Function to generate sentiment analysis
|
|
|
3 |
import os
|
4 |
|
5 |
# AIML API settings
|
6 |
+
aiml_api_key = os.getenv("AIML_API_KEY") # Fetch the API key from environment variables
|
7 |
client = OpenAI(api_key=aiml_api_key)
|
8 |
|
9 |
# Function to generate sentiment analysis
|