Spaces:
Sleeping
Sleeping
File size: 1,155 Bytes
7cdf34d 872ce15 7cdf34d a938093 804fbfe 7cdf34d 872ce15 |
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 |
---
title: AI Tutor Chatbot
emoji: π§π»βπ«
colorFrom: gray
colorTo: pink
sdk: gradio
sdk_version: 4.19.2
app_file: scripts/gradio-ui.py
pinned: false
---
---
This project creates a helpful and accurate AI Tutor chatbot, leveraging GPT-3.5-Turbo and a RAG system. We design it to address student questions about AI with precision and clarity.
### Installation
1. **Create a new Python environment:**
```bash
python -m venv .venv
```
This command creates a virtual environment named `.venv`.
2. **Activate the environment:**
For macOS and Linux:
```bash
source .venv/bin/activate
```
3. **Install the dependencies:**
```bash
pip install -r requirements.txt
```
### Usage
1. **Set environment variables:**
Before running the application, you need to set up your OpenAI API key and MongoDB URI as environment variables:
```bash
export OPENAI_API_KEY=your_openai_api_key_here
export MONGODB_URI=your_mongodb_uri_here
```
2. **Run the application:**
```bash
python scripts/gradio-ui.py
```
This command starts the Gradio interface for the AI Tutor chatbot.
|