Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubiksman78 committed Dec 19, 2022
1 parent fc74714 commit 79bd6ff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

This project aims to add new AI based features to [Monika After Story mod](https://github.com/Monika-After-Story/MonikaModDev) with the submod API.
It's using HuggingFace DialoGPT models, [TTS Coqui-AI](https://github.com/coqui-ai/TTS) for Text to Speech and [Character AI](https://character.ai/) for more realistic responses.
There is also an emotion detection with the webcam with a model from [HSEmotion](https://github.com/HSE-asavchenko/face-emotion-recognition).

## Installation

Expand All @@ -14,6 +15,9 @@ The submod is the folder `AI_submod`. To add it to your game, you have to add it
## Usage

To use it, you can launch the script `combined_server.py` that will automatically launch a server with chatbot and emotion recognitions models, it will also launch the game and initialize the client/server connection.

Don't launch the game independently, it will cause conflicts with the process that will automatically launch the game in the main.

There are several arguments you can use in command line:
- `--game_path` : the absolute path to your game directory like `some_path\DDLC-1.1.1-pc`
- `--chatbot_path` : the relative path to the chatbot model like `chatbot_model`
Expand Down
2 changes: 0 additions & 2 deletions combined_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
import cv2
import os
import subprocess
import tempfile
from pydub import AudioSegment
import time
import asyncio
from playwright.async_api import async_playwright
import nest_asyncio
Expand Down
2 changes: 0 additions & 2 deletions text_emotion.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@

def get_emotion(text):
return classifier(text)[0]["label"]

print(get_emotion("I am happy"))

0 comments on commit 79bd6ff

Please sign in to comment.