MING | an exploration of AI conflict mediation by The Knight Foundation School of Computing and Information Sciences at Florida International University.
This repository contains the FastAPI backend for MING, which integrates with LangChain to analyze text input and provide feedback.
git clone https://github.com/your-repo-url.git
cd your-repo-directory
Create a .env
file in the root directory of the project and add the following:
OPENAI_API_KEY=your_openai_api_key
Replace your_openai_api_key
with your actual OpenAI API key.
pip install -r requirements.txt
First, create a new conda environment:
conda create --name claridad-ai-env python=3.8
conda activate claridad-ai-env
Then, install the dependencies:
while read requirement; do conda install --yes $requirement; done < requirements.txt
Activate the virtual environment (if using conda: conda activate claridad-ai-env
), and then:
python app.py
The application will start, and you can access it at http://localhost:5000
.
Note: Make sure to replace your-repo-url
and your-repo-directory
with the appropriate values for your project. Adjust the Python version in the conda setup if you're using a different version.