This is a simple introduction to AI as a Therapist using Gemini API
System Configuration
- pip version - 23.2.1
- python version - 3.9
Project Requirements
- streamlit - to serve the app's presentation layer
- google-generativeai - to integrate the LLM
Installing Dependencies
pip install -r requirements.txt --no-cache
Running Application
You need to enter your API key gotten from Google AI Studio in the index file
genai.configure(api_key=st.secrets.API_KEY)where the API_KEY is being stored in the .streamlit/secrets.toml file like this
API_KEY = '<YOUR_API_KEY>'Run the application
streamlit run src/index.py
Start Chat
For test purposes, the chat session resets each time you start the server
The app is being launched in the browser where the user can proceed to chat with the bot