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.
- Node.js v23.1.0 and npm 10.9.0
- Python 3.9
git clone https://github.com/yourusername/psychotherapy-dialogue
cd psychotherapy-dialogue
- Navigate to the backend directory:
cd backend
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables: Replace [your-api-key] with your openai api key.
export OPENAI_API_KEY=[your-api-key]
- Navigate to the frontend directory:
cd ../frontend
- Install frontend dependencies:
npm install
# Navigate to backend directory
cd backend
# Start the Flask server
python app.py
The backend server will run on http://localhost:5000
.
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
.
- Homepage: Select a psychologist to start a session.
- Introduction Page: View the psychologist's bio and begin the chat.
- Chat Page: Engage in a conversation. Type messages, and view the psychologist's responses streamed in real-time.
- View Summary: Click the “View Summary” button to see a synthesized summary of key therapeutic points.