--- title: Solar Industry AI Assistant emoji: 🌖 colorFrom: green colorTo: purple sdk: streamlit sdk_version: 1.42.0 app_file: app.py pinned: false --- # Solar Industry AI Assistant A Streamlit-based web application that provides AI-powered responses to solar energy-related queries using Google's Gemini Pro model. The application features a user-friendly interface, chat history management, and solar domain-specific query filtering. ## Features - 🤖 AI-powered responses using Google's Gemini Pro model - ☀️ Solar energy domain-specific query filtering - 💬 Interactive chat interface with history tracking - 💾 Export chat history functionality - 🎨 Modern and responsive UI design - 👤 Developer profile and contact information ## Installation 1. Clone the repository: ```bash git clone https://github.com/yourusername/solar-industry-ai-assistant.git cd solar-industry-ai-assistant ``` 2. Install the required dependencies: ```bash pip install -r requirements.txt ``` 3. Create a `config.py` file with your Google API key: ```python API_KEY = "your-google-api-key" ``` ## Usage 1. Run the Streamlit application: ```bash streamlit run test.py ``` 2. Open your web browser and navigate to the local URL provided by Streamlit (typically http://localhost:8501) 3. Enter your solar energy-related questions in the text area and click "Get Answer" ## Project Structure - `test.py`: Main application file containing the Streamlit UI and core functionality - `filter.py`: Module for filtering solar energy-related queries - `config.py`: Configuration file for API keys and other settings - `requirements.txt`: List of Python dependencies - `README.md`: Project documentation ## Contributing 1. Fork the repository 2. Create a new branch for your feature 3. Commit your changes 4. Push to the branch 5. Create a Pull Request ## License This project is licensed under the MIT License - see the LICENSE file for details. ## Contact - Uditanshu Pandey - Email: uditanshup114@gmail.com - LinkedIn: [LinkedIn Profile](https://www.linkedin.com/in/uditanshupandey?lipi=urn%3Ali%3Apage%3Ad_flagship3_profile_view_base_contact_details%3BqqRVF%2FNpRheKgruh2Qy9aw%3D%3D) - GitHub: [GitHub Profile](https://github.com/UditanshuPandey) Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference