Mind-reader is an app built using mindsdb. The app aims to provide mental support to people who are going through tough times.
- Chat support
-
mind-readerrelies on OpenAI. So, for themindsdbsetup, additionally install the dependencies atmindsdb/integrations/handlers/openai_handler/requirements.txt- Start the server:
python -m mindsdb
-
Clone the mind-reader repo:
git clone https://github.com/SebastianJames55/mind-reader.git -
Create a new virtual environment (recommended)
Following are the steps to follow on Windows
Create virtual environment:python -m venv mind-reader-venvCreate a file
venv_vars.batin\mind-reader-venv\Scripts\.
Invenv_var.batadd the following:@echo off set OPENAI_API_KEY=your-openai-api-keyAt the end of
activate.batin\mind-reader-venv\Scripts\, add:call venv_vars.batNow, activate the venv:
.\mind-reader-venv\Scripts\activate.bat -
Install the prerequisities:
pip install -r requirements.txt -
Run the mind-reader app:
py app.py -
Navigate to
http://127.0.0.1:5000/api/v1/.
Underpredict, click onTry it out. Enter a text againstrequest_messageand click onExecute.
Here's an example of a chat input and reply.
-
Please refer to the demo & article for more details on the idea and implementation
- API documentation included for the
/api/v1/predictendpoint using Flask-RESTx. - The Swagger documentation will be available at
/api/v1/swagger.jsonor/api/v1/when you run the application.