marty331 commited on
Commit
5920e52
·
unverified ·
1 Parent(s): 5a499dd

Create README_2

Browse files
Files changed (1) hide show
  1. README_2 +39 -0
README_2 ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Building and Deploying a Gradio UI on Hugging Face Spaces
2
+
3
+ ## Overview
4
+
5
+ This repository contains the code of the "Building and Deploying a Gradio UI on Hugging Face Spaces" lesson of the "From Beginner to Advanced LLM Developer" course.
6
+
7
+ ## Setup
8
+
9
+ 1. Clone the repository.
10
+
11
+ ```bash
12
+ git clone [email protected]:towardsai/ai-tutor-gradio-lesson.git
13
+ cd ai-tutor-gradio-lesson
14
+ ```
15
+
16
+ 2. Create a `.env` file and add there your OpenAI API key. Its content should be something like:
17
+
18
+ ```bash
19
+ OPENAI_API_KEY="sk-..."
20
+ ```
21
+
22
+ 3. Create a local virtual environment, for example using the `venv` module. Then, activate it.
23
+
24
+ ```bash
25
+ python -m venv venv
26
+ source venv/bin/activate
27
+ ```
28
+
29
+ 4. Install the dependencies.
30
+
31
+ ```bash
32
+ pip install -r requirements.txt
33
+ ```
34
+
35
+ 5. Launch the Gradio app.
36
+
37
+ ```bash
38
+ python app.py
39
+ ```