[ Hybrid(s) of machine learning and irc3 framework ]
Go to file
[d] a64ddbc1f7 Add 'plugins/storage_plugin.py'
removed warnings for method connection_ready not awaited
2022-02-02 05:11:06 +00:00
databases init 2021-11-02 11:01:21 -05:00
plugins Add 'plugins/storage_plugin.py' 2022-02-02 05:11:06 +00:00
.gitignore update 2021-12-01 03:26:10 -06:00
maple.ini update 2021-12-11 20:44:31 -06:00
README.md init 2021-11-02 11:56:44 -05:00
requirements.txt update 2021-11-11 00:42:30 -06:00
run.sh update 2021-11-22 05:07:11 -06:00

MAPLE+G1MP ML/Irc3 Hybrid

[ Hybrid of machine learning and irc3 framework ]
- Maple - [sourcecode](https://git.tcp.direct/decoded/Maple)
- g1mp - [sourcecode](https://git.tcp.direct/decoded/g1mp)

Prerequisites

  1. apt install tmux
  2. apt install python3
  3. apt install python3-pip
  4. python3 -m pip install virtualenv

Instructions

  1. git clone --recursive https://git.tcp.direct/decoded/m4pl1mp.git
  2. cd m4pl1mp
  3. virtualenv env -p python3
  4. source env/bin/activate

Append your api keys to env/bin/activate. Example below:

cat env/bin/activate
..
export DEVELOPER_KEY=1394823190182390182382383215382158321
export CONSUMER_KEY=2151235132512351235123512351325231
export CONSUMER_SECRET=514512521345234523452345234523452345234523452
export ACCESS_TOKEN_KEY=24513429875209348502934850294898348034850293485203948592
export ACCESS_TOKEN_SECRET=523490582034985203948520394804884820934850923485
  1. pip install -r requirements.txt
  2. python3 plugins/maple.py # verify maple works, hit ctrl-c after you see *** RUNNING ***
*** INITIALZING ***
2021-11-02 09:07:33,005 - model - INFO - Downloading model files to medium_multiref_ft...
100%|████████████████████████████████████████████████████████████████| 293/293 [00:00<00:00, 673018.11B/s]
100%|███████████████████████████████████████████████████████| 1042301/1042301 [00:00<00:00, 1606977.94B/s]
100%|█████████████████████████████████████████████████████████| 456318/456318 [00:00<00:00, 1151159.63B/s]
100%|███████████████████████████████████████████████████| 862954531/862954531 [01:36<00:00, 8977379.11B/s]
2021-11-02 09:09:11,861 - model - INFO - Loading model from medium_multiref_ft...
*** RUNNING ***
  1. change the two instances of #PHiX in plugins/maple_plugin.py to whatever channel she will communicate
  2. bash run.sh

TODO:

  1. revise maple.py to run async inside irc3
  2. update maple_plugin.py to use a queue stack