Skip to content

Aiden0526/Psychotherapy-dialogue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Psychotherapy-dialogue

A web-based psychotherapy dialogue system that allows users to have therapeutic conversations with simulated renowned psychologists. This application includes a real-time chat interface, personalized responses from psychologists, and a summary generation feature.

Set up

Prerequisites:

  • Node.js v23.1.0 and npm 10.9.0
  • Python 3.9

Clone the Repository:

git clone https://github.com/yourusername/psychotherapy-dialogue
cd psychotherapy-dialogue

Backend Setup

  1. Navigate to the backend directory:
cd backend
  1. Install dependencies:
pip install -r requirements.txt
  1. Set up environment variables: Replace [your-api-key] with your openai api key.
export OPENAI_API_KEY=[your-api-key]

Frontend Setup

  1. Navigate to the frontend directory:
cd ../frontend
  1. Install frontend dependencies:
npm install

Running the Application

Starting the Backend Server

# Navigate to backend directory
cd backend
# Start the Flask server
python app.py

The backend server will run on http://localhost:5000.

Starting the Frontend Development Server

In a new terminal window:

# Navigate to frontend directory
cd frontend
# Start the Vue development server
npm run serve

The frontend server will run on http://localhost:8080.

Usage

  1. Homepage: Select a psychologist to start a session.
  2. Introduction Page: View the psychologist's bio and begin the chat.
  3. Chat Page: Engage in a conversation. Type messages, and view the psychologist's responses streamed in real-time.
  4. View Summary: Click the “View Summary” button to see a synthesized summary of key therapeutic points.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published