This README is outdated; for reference only.
This cheat sheet contains all commands I use with conda.
After installing miniconda, create an env mi.
conda env create --name mi python=3.9
Run this to activate the env every time you work on this project.
conda activate mi
For the first time you use the env, run this inside (counseling-generator-backend/) to install the dependencies.
pip install -r requirements.txt
After you installed anything new, please add it to requirements.txt manually following the same format.
python api.py
Send all requests over http
POST requests send arguments in body in raw json format and return values in json format.http://localhost:5000, but it can be hosted on any server address and port.POST{
"client_id": "client-id-test",
"listener_id": "listener-id-test"
}
POST{
"is_listener": true,
"utterance": "How are you doing?"
}
[
[
0,
"PR",
"good, i'm bad at these"
],
[
1,
"QUC",
"good u."
],
[
2,
"RF",
"How How??"
],
[
3,
"GR",
"Good."
],
[
4,
"SUP",
"good u im trying ahhh"
],
[
5,
"AF",
"how u doing"
]
]
POST{
"is_listener": true,
"pred_index": 13
}
GET27 commits
Python
71.7%
Jupyter Notebook
28.3%
This README is outdated; for reference only.
This cheat sheet contains all commands I use with conda.
After installing miniconda, create an env mi.
conda env create --name mi python=3.9
Run this to activate the env every time you work on this project.
conda activate mi
For the first time you use the env, run this inside (counseling-generator-backend/) to install the dependencies.
pip install -r requirements.txt
After you installed anything new, please add it to requirements.txt manually following the same format.
python api.py
Send all requests over http
POST requests send arguments in body in raw json format and return values in json format.http://localhost:5000, but it can be hosted on any server address and port.POST{
"client_id": "client-id-test",
"listener_id": "listener-id-test"
}
POST{
"is_listener": true,
"utterance": "How are you doing?"
}
[
[
0,
"PR",
"good, i'm bad at these"
],
[
1,
"QUC",
"good u."
],
[
2,
"RF",
"How How??"
],
[
3,
"GR",
"Good."
],
[
4,
"SUP",
"good u im trying ahhh"
],
[
5,
"AF",
"how u doing"
]
]
POST{
"is_listener": true,
"pred_index": 13
}
GET27 commits
Python
71.7%
Jupyter Notebook
28.3%