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-reader
relies on OpenAI. So, for themindsdb
setup, 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-venv
Create a file
venv_vars.bat
in\mind-reader-venv\Scripts\
.
Invenv_var.bat
add the following:@echo off set OPENAI_API_KEY=your-openai-api-key
At the end of
activate.bat
in\mind-reader-venv\Scripts\
, add:call venv_vars.bat
Now, 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_message
and 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/predict
endpoint using Flask-RESTx. - The Swagger documentation will be available at
/api/v1/swagger.json
or/api/v1/
when you run the application.