File size: 1,430 Bytes
3cfebac
fe42b90
3cfebac
 
 
 
 
 
 
96d76f3
3cfebac
 
34c5c8e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
62
63
---
title: Gschatbot 2
emoji: ๐Ÿ’ฌ
colorFrom: yellow
colorTo: purple
sdk: gradio
sdk_version: 4.36.1
app_file: app.py
pinned: false
license: unknown
---

# Gaslighting Chatbot

## Description
๊ฐ€์Šค๋ผ์ดํŒ… ์ฑ—๋ด‡ ํ”„๋กœ์ ํŠธ

## Prerequisites
- Python 3.7 or higher
- pip (Python package installer)

## Setup Instructions

1. Clone the repository:
    ```sh
    git clone <repository_url>
    cd <repository_directory>
    ```

2. Create a virtual environment (optional but recommended):
    ```sh
    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    ```

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

4. Create a `.env` file in the project root directory and add your OpenAI API key:
    ```plaintext
    OPENAI_API_KEY=sk-YourOpenAIKeyHere
    ```
    ๋ณ„๋„์˜ openai api๋ฅผ ํ•„์š”๋กœ ํ•ฉ๋‹ˆ๋‹ค.

5. Add `.env` to `.gitignore` to ensure it is not tracked by git:
    ```plaintext
    # .gitignore
    .env
    ```

6. Run the chatbot:
    HICํด๋” ๋‚ด๋ถ€์˜ V1~Vx๊นŒ์ง€ ๊ฐ€๋Šฅ

## File Descriptions

- `chatbot.py`: The main script to run the chatbot.
- `requirements.txt`: Lists the dependencies required for the project.
- `.env`: File to store environment variables (e.g., API keys). **Do not commit this file to version control.**
- `.gitignore`: Ensures `.env` and other files are not tracked by git.
- `README.md`: This readme file.