This application is an AI-powered assistant that integrates Python execution capabilities with React component rendering on the fly, offering a comprehensive environment for data analysis, visualization, and interactive web development.
New Feature | Feature Description | Notes |
---|---|---|
03.07.2024 | Multimodal Support (Vision Capability) | - Enables the application to process and analyze images alongside text and code. - AI to generate from referanced images for a wider range of tasks. - Integration: Seamlessly added to existing framework. |
Intelligent Chat Interface:
Python Code Execution:
Dynamic React Component Creation:
Integrated File Operations:
Advanced Data Visualization:
LangGraph-based Workflow:
Intuitive Streamlit Interface:
Adaptive Tool Utilization:
Flexible Package Management:
Web Resource Access:
Robust Error Handling:
Before running the application, ensure you have configured the necessary API keys in the .env
file located at the root of the project directory. Follow these steps for Python dependency installation:
Create a virtual environment by running:
python -m venv venv
This command creates a new directory named venv
in your project directory, which will contain the Python executable and libraries.
Activate the virtual environment:
.\venv\Scripts\activate
source venv/bin/activate
After activation, your terminal prompt will change to indicate that the virtual environment is active.
With the virtual environment activated, install the required Python packages by running:
pip install -r requirements.txt
This command reads the requirements.txt
file and installs all the listed packages along with their dependencies.
Remember to activate the virtual environment (venv
) every time you work on this project. To deactivate the virtual environment and return to your global Python environment, simply run deactivate
.
After setting up the Python environment, proceed with the Node.js setup:
Install the required Node.js packages:
npm install
Build the packages:
npm run build
Finally, to start the application:
Launch the Streamlit application:
streamlit run main.py
Access the application via your web browser to start interacting with the AI assistant.
Note: The application automatically initiates the React development server in a subprocess, eliminating the need to manually run npm start
.
This application combines advanced AI capabilities with code execution. Always review and understand any code before execution, particularly in production environments.