Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
5.13.1
metadata
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
Clone the repository:
git clone <repository_url> cd <repository_directory>
Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
Install the required packages:
pip install -r requirements.txt
Create a
.env
file in the project root directory and add your OpenAI API key:OPENAI_API_KEY=sk-YourOpenAIKeyHere
๋ณ๋์ openai api๋ฅผ ํ์๋ก ํฉ๋๋ค.
Add
.env
to.gitignore
to ensure it is not tracked by git:# .gitignore .env
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.