Skip to content

Latest commit

 

History

History
62 lines (41 loc) · 1.35 KB

File metadata and controls

62 lines (41 loc) · 1.35 KB

Quick Start Guide - AI Agriculture Advisor

✅ System is Ready!

All components have been configured to use Google Gemini instead of OpenAI.

🚀 Start the Application

Simply run:

./start.sh

This will:

  • ✅ Load your GEMINI_API_KEY from .env file
  • ✅ Start the FastAPI backend on http://localhost:8000
  • ✅ Start the frontend on http://localhost:3000

Then open your browser to: http://localhost:3000

🧪 Test Environment Loading (Optional)

To verify your environment variables are loading correctly:

python3 test_env.py

You should see:

GEMINI_API_KEY: ✅ Set

📝 Your .env File Should Contain

GEMINI_API_KEY=your_actual_api_key_here

Get your API key from: https://makersuite.google.com/app/apikey

❓ Troubleshooting

"OPENAI_API_KEY is required" error

  • FIXED! The API now properly loads the .env file with python-dotenv
  • Make sure you restart the servers after updating .env

API not responding

  • Check that both servers are running
  • Verify your GEMINI_API_KEY is set in .env
  • Check the terminal for error messages

📚 More Information


Ready to go! Just run ./start.sh and open http://localhost:3000 🌱