This Streamlit app is an All-in-One AI Assistant that uses Google's Gemini API to perform various tasks in one place.
It provides an interactive, user-friendly interface for chatting, summarization, translation, and more β making it a versatile learning and productivity tool.
This assistant is designed as an all-in-one AI tool. Instead of building separate apps, this code shows how to integrate multiple features into one app:
- Conversational Chatbot π¬
- Text Summarization βοΈ
- Keyword Extraction π
- Multilingual Translation π
- Text-to-Speech (TTS) π
- A simple menu with radio buttons (
st.radio) lets you switch between tasks. - Each task is implemented with clear if/elif blocks.
- Easy to extend with new features like Q&A or Sentiment Analysis.
st.radio,st.selectbox,st.text_areaβ interactive inputs.st.spinnerβ adds loading animations.st.session_stateβ keeps chat history.st.audioβ plays AI-generated speech.st.components.v1.htmlβ allows embedding custom HTML.
- Configures the API key with
genai.configure(api_key=...). - Supports multiple models (
gemini-pro,gemini-pro-vision,gemini-2.5-flash-preview-tts). - Handles text, translation, and speech.
Follow these steps to set up and run the assistant locally:
git clone https://github.com/your-username/all-in-one-ai-assistant.git
cd all-in-one-ai-assistant
### πΉ 2. Create & Activate a Virtual Environment (Recommended)