Welcome to the Palm 2π΄ Chatbot project! This Streamlit app provides an interactive interface for users to communicate with the Palm 2π΄ Chatbot. The chatbot is capable of interpreting code, prompting the user, exporting code to repl.it, and displaying images.
-
Language Selection: Users can select their preferred language from a list. The language codes are loaded from a
lang.json
file. -
Code Interpreter: The chatbot can interpret and execute code snippets. Users can toggle this feature on or off.
-
System Prompt: Users can set a system prompt for the code interpreter. The default prompt is: "Rule 1: If a user requests a code snippet, provide only one that can run in a Streamlit app without requiring additional libraries."
-
Export to repl.it: Users have the option to export the interpreted code to repl.it.
-
Image Display: The chatbot can display images in the chat interface. Users can toggle the display of images on or off.
-
Clone the repository:
git clone https://github.com/Illia-the-coder/Code-Interpreter-Palm2.git
-
Navigate to the project directory:
cd Code-Interpreter-Palm2
-
Install the required packages:
pip install streamlit json os requests
-
Run the Streamlit app:
streamlit run app.py
-
Open the Streamlit app in your browser.
-
Use the sidebar to select your preferred language, toggle the code interpreter, set the system prompt, toggle the export to repl.it option, and toggle the image display option.
-
In the chat interface, type your message or code snippet and press enter. The chatbot will respond accordingly.
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License. See the LICENSE file for details.