Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ except OSError:
|
|
14 |
nlp = spacy.load(MODEL_NAME)
|
15 |
|
16 |
# Configure Google Gemini AI
|
17 |
-
genai.configure(api_key=os.getenv("
|
18 |
|
19 |
def analyze_text(text):
|
20 |
"""Perform AI-driven text analysis."""
|
|
|
14 |
nlp = spacy.load(MODEL_NAME)
|
15 |
|
16 |
# Configure Google Gemini AI
|
17 |
+
genai.configure(api_key=os.getenv("GEMINI_API_KEY")) # Use environment variable for security
|
18 |
|
19 |
def analyze_text(text):
|
20 |
"""Perform AI-driven text analysis."""
|