WARNING THIS REPO HAS TONS OF ISSUES AND IS NOT SAFE TO USE FOR PRODUCTION
Backend for ChadGPT - ETH Tokyo Hackathon
This project is the backend for ChadGPT, which was created during the ETH Tokyo Hackathon in 36 hours. The backend is designed to support the ChadGPT application, an innovative solution for using AI to help with coding and finding bugs, with a focus on smart contracts.
Thank you to Filecoin FVM for awarding us with a prize!
These instructions will help you set up the project on your local machine for development and testing purposes. See the deployment section for notes on how to deploy the project on a live system.
To run the backend, you will need:
- Python >=3.9
- Docker (optional)
Clone the repository:
git clone https://github.com/kevin-fruitful/chadgpt-backend.git
Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On macOS/Linux
venv\Scripts\activate # On Windows
Install the required packages:
pip install -r requirements.txt
Set up the environment variables:
OPENAI_API_KEY=
Run the backend locally:
flask run --port 8000
or
python app.py
Your backend should now be running at http://localhost:8000
.
To deploy the backend, containerize it using Docker and deploy it on your preferred cloud provider or VPS. See the Docker documentation and the specific cloud provider's documentation for more details on how to deploy the Docker container.
- Flask - The web framework used
- LangChain SDK
Kevin Park @kevin-fruitful Ariel Chen @Arielpopcorn Caitlin Zhang @caitlinthebest Tesa Ho @tesaho Tim Cox @timncox
This project is licensed under the MIT License - see the LICENSE.md file for details.
- The ETH Tokyo Hackathon organizers and sponsors for providing the opportunity to build this project.
- The amazing mentors and fellow participants at ETH Tokyo for their support and collaboration. -- Special shoutout to Jeff Lau @jefflau
- Everyone who has contributed to the open-source tools and libraries used in this project.
After installing dependencies, add them to requirements.txt
pip freeze > requirements.txt