--- title: ChatBot Pro emoji: 🤖 colorFrom: blue colorTo: indigo sdk: docker pinned: false license: mit --- # ChatBot Pro A simple but powerful chatbot application built with Google Gemini AI model and Gradio interface. ## Setup and Installation ### Local Development 1. Clone this repository 2. Create a virtual environment: ``` python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate ``` 3. Install dependencies: ``` pip install -r requirements.txt ``` 4. Make sure you have a `.env` file with your Google API key: ``` GOOGLE_API_KEY=your_api_key_here ``` 5. Run the application: ``` python run.py ``` ### Deploying to Hugging Face Spaces 1. Create a new Space on Hugging Face and select Gradio as the SDK 2. Use this repository as the source (you can link your GitHub repository or upload files directly) 3. Add your Google API key as a secret named `HF_GOOGLE_API_KEY` in the Space settings 4. Deploy the Space and it should run automatically ## Features - Interactive chat interface - Persistent chat sessions - Gemini AI powered responses - Clean and modern UI ## Troubleshooting If you encounter any issues: 1. Verify your API key is correct in the `.env` file or Hugging Face Space secrets 2. Make sure all dependencies are installed correctly 3. Check the console for any error messages