Fix: Add google-generativeai to requirements.txt
Browse filesHuggingFace deployment was failing with:
ModuleNotFoundError: No module named 'google.generativeai'
The code imports google.generativeai but requirements.txt
had google-genai (newer package with different API).
Changed requirements.txt to use google-generativeai>=0.8.0
to match the current code implementation.
🤖 Generated with Claude Code
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- requirements.txt +1 -1
requirements.txt
CHANGED
|
@@ -16,7 +16,7 @@ langchain-core>=0.3.0
|
|
| 16 |
anthropic>=0.39.0
|
| 17 |
|
| 18 |
# Free baseline alternatives
|
| 19 |
-
google-
|
| 20 |
huggingface-hub>=0.26.0 # For HF Inference API (Qwen, Llama)
|
| 21 |
|
| 22 |
# ============================================================================
|
|
|
|
| 16 |
anthropic>=0.39.0
|
| 17 |
|
| 18 |
# Free baseline alternatives
|
| 19 |
+
google-generativeai>=0.8.0 # Gemini 2.0 Flash (current SDK used in code)
|
| 20 |
huggingface-hub>=0.26.0 # For HF Inference API (Qwen, Llama)
|
| 21 |
|
| 22 |
# ============================================================================
|