Skip to content

Latest commit

 

History

History
75 lines (50 loc) · 2.1 KB

File metadata and controls

75 lines (50 loc) · 2.1 KB

AssistantAGI Calendar UI with Streamlit

This is a Streamlit-based calendar UI that integrates with AssistantAGI using Flask.

Features

  • Interactive calendar view with month navigation
  • Event creation and management
  • Chat interface to interact with AssistantAGI
  • Event details view for selected dates

Installation

  1. Install the required dependencies:
# Create a virtual environment
python -m venv venv

# Activate the virtual environment
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install the AssistantAGI package
pip install -e .

# Install Streamlit and other dependencies
pip install -r requirements_streamlit.txt

Running the Application

You need to run both the Flask server and the Streamlit app:

1. Start the Flask server

# In one terminal
source venv/bin/activate  # On Windows: venv\Scripts\activate
python flask_server.py

The Flask server will run on http://localhost:5000

2. Start the Streamlit app

# In another terminal
source venv/bin/activate  # On Windows: venv\Scripts\activate
streamlit run streamlit_app.py

The Streamlit app will be available at http://localhost:8501

Usage

  1. Calendar View: Navigate through months using the Previous and Next buttons
  2. Adding Events: Click on a date and use the form on the right to add a new event
  3. Viewing Events: Events for the selected date will be displayed below the calendar
  4. Chat with AssistantAGI: Use the chat interface on the right to interact with AssistantAGI

Architecture

  • Streamlit App: Provides the user interface for calendar and chat
  • Flask Server: Acts as a bridge between the Streamlit app and AssistantAGI
  • AssistantAGI: Processes user queries and provides intelligent responses

Customization

You can customize the calendar UI by modifying the CSS in the streamlit_app.py file.

Troubleshooting

  • If you encounter connection errors, make sure the Flask server is running
  • If events aren't displaying, check the Flask server logs for any errors
  • For AssistantAGI-related issues, refer to the main AssistantAGI documentation