marty331 commited on
Commit
f9b4823
·
unverified ·
2 Parent(s): 5a499dd 3789142

Merge pull request #1 from marty331/Update_readme

Browse files
Files changed (3) hide show
  1. README.md +11 -1
  2. README_2 +39 -0
  3. requirements.txt +0 -0
README.md CHANGED
@@ -1,3 +1,13 @@
 
 
 
 
 
 
 
 
 
 
1
  # Building and Deploying a Gradio UI on Hugging Face Spaces
2
 
3
  ## Overview
@@ -36,4 +46,4 @@ pip install -r requirements.txt
36
 
37
  ```bash
38
  python app.py
39
- ```
 
1
+ ---
2
+ title: AI Tutor
3
+ emoji: 💡
4
+ colorFrom: blue
5
+ colorTo: indigo
6
+ sdk: gradio
7
+ sdk_version: "4.44.1"
8
+ app_file: app.py
9
+ pinned: false
10
+ ---
11
  # Building and Deploying a Gradio UI on Hugging Face Spaces
12
 
13
  ## Overview
 
46
 
47
  ```bash
48
  python app.py
49
+ ```
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 git@github.com: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
+ ```
requirements.txt CHANGED
Binary files a/requirements.txt and b/requirements.txt differ