Coder Social home page Coder Social logo

vibhorag101 / phr-mental-chat Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 5.99 MB

Llama-2's Mental Therapy Chatbot: fine-tuned 7B & 13B models for empathetic conversations. Made using HF Transformers, Gradio UI and deployed using HF TGI-Inference, FastAPI and Docker

License: Other

Shell 0.16% Python 6.74% CSS 0.04% Jupyter Notebook 93.06%

phr-mental-chat's Introduction

phr-mental-chat

A mental therapy chatbot

Model and dataset details:

  • The original dataset is accessible at here
  • The modified dataset for llama-2 format is accessible at here
  • The finetuned llama-2-7b-chat-hf model is accessible at here

To build the docker image, run following commands:

docker build -t {image_name} .
docker run --gpus all -p 5555:5555  -itd --name {container_name} {image_name}
  • Chatbot will be accessible at http://{server_ip}:5555/gradio
  • Chatbot API will be accessible at http://{server_ip}:5555/generate
  • Roberta Emotion Classification api will be accessible at http://{server_ip}:5555/emotion
  • Suicide Prediction api will be accessible at http://{server_ip}:5555/suicide
  • Plutchik Emotion API available at http://{server_ip}:5000/predict_sentiment and http://{server_ip}:5000/predict_sentiment_scores
  • The API docs are available at http://{server_ip}:5555/docs

phr-mental-chat's People

Contributors

avgupt avatar vibhorag101 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.