File size: 1,492 Bytes
4b70306
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
license: apache-2.0
---
# Capybara Dating App

Capybara Dating App is an interactive personality quiz that uses AI to generate questions and classify users' dating personalities. It's built with Python (Flask) for the backend and HTML/JavaScript for the frontend.

## Features

- AI-generated questions tailored to previous responses
- Personality classification based on user answers
- Saves personality summaries to text files
- Interactive web interface

## Requirements

- Python 3.8+
- Flask
- Flask-CORS
- LangChain
- OpenAI API key

## Installation

1. Clone this repository:
   ```
   git clone https://github.com/yourusername/capybara-dating-app.git
   cd capybara-dating-app
   ```

2. Install the required packages:
   ```
   pip install -r requirements.txt
   ```

3. Set your OpenAI API key as an environment variable:
   ```
   export OPENAI_API_KEY='your-api-key-here'
   ```

## Usage

1. Start the Flask server:
   ```
   python capx/capybara_dating_app_api.py
   ```

2. Open `capx/capybara_dating_app.html` in your web browser.

3. Answer the questions presented by the app.

4. After answering 5 questions, you'll receive your personality classification.

5. A summary of your responses and personality classification will be saved as a text file in the project directory.

## File Structure

- `capybara_dating_app_api.py`: Flask backend
- `capybara_dating_app.html`: Frontend HTML/JavaScript
- `requirements.txt`: List of Python dependencies
- `README.md`: This file