Assalamualaikum, dear sister, and welcome to the AI One-Month Challenge Repository for Tech Sisters! 🎉
This month, we’re focusing on learning about Large Language Models (LLMs) and experimenting with the Google Gemini API. As part of the challenge, we’re taking the Gemini API course by Udacity and pairing it with a small project to help you put your knowledge into practice.
Even if you’ve never worked with Streamlit before, don’t worry! You’ll find it easy to get started and have fun learning! 😊
In this repository, you'll find a simple chat application built using Streamlit and the Google Gemini API. Feel free to customize the prompts and user interface as you wish—be creative! ✨
Follow these steps to set up your environment and run the Streamlit app:
Make sure you have the following installed:
- Python (version 3.7 or higher) 🐍
- pip (Python package installer) 📦
-
Fork the Repository 🍴
- Click on the "Fork" button at the top right corner of this page to create a copy of this repository in your GitHub account.
-
Clone the Forked Repository 💻
- Open your terminal (or command prompt) and run the following command:
git clone https://github.com/YOUR_USERNAME/YOUR_FORKED_REPOSITORY.git
- Replace
YOUR_USERNAME
with your GitHub username andYOUR_FORKED_REPOSITORY
with the name of your forked repository.
- Open your terminal (or command prompt) and run the following command:
-
Create a Virtual Environment 🌱
- Navigate to the project directory:
cd YOUR_FORKED_REPOSITORY
- Create a virtual environment:
python -m venv venv
- Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
- Navigate to the project directory:
-
Install Requirements 📜
- Before installing the necessary packages, make sure to navigate to the
/app
directory. You can do this by running the following command in your terminal:cd app
- Install the necessary packages by running:
pip install -r requirements.txt
- Before installing the necessary packages, make sure to navigate to the
To run the Streamlit application, use the following command in your terminal:
streamlit run app.py
Once the app is running, you can access it in your web browser at http://localhost:8501. 🌐 Here, you'll find a user-friendly interface for the chat application, allowing you to interact with the Google Gemini API and ask questions about Tech Sisters.
Feel free to test it out, and don't hesitate to explore the functionalities. Your creativity can really shine here!
You will find a chat application in the project. You're encouraged to customize the prompts and the user interface to make it your own. Here are a few ideas to get you started:
-
Modify Prompts: Change the default prompts to suit your style or the type of conversations you want your app to handle. Experiment with different tones, topics, or formats to see how the responses vary! 🗣️
-
Update the UI: Streamlit allows for easy customization of the user interface. Try changing colors, layouts, and text styles to create a unique look for your app. Don't forget to add your personal touch! 🎨
-
Add New Features: Feel free to expand the functionality of the chat app. You can expirement with Retrieval Augmented Generation as seen in the course. The possibilities are endless! 🌟
Be creative and have fun with your project! Your ideas and innovations can make this app even better. 💖
Once you’ve customized your chat application and are ready to share it with others, here are some options for deploying your Streamlit app:
-
Create a Streamlit Account: If you don't have one yet, go to Streamlit Sharing and sign up for an account.
-
Push Your Changes to GitHub: Make sure all your latest changes are pushed to your GitHub repository.
-
Deploy Your App:
- Go to your Streamlit Sharing dashboard.
- Click on "New App" and select your GitHub repository.
- Choose the branch (usually
main
) and specify the file path to yourapp.py
. - Click "Deploy," and your app will be live shortly! 🚀