A newer version of the Gradio SDK is available:
5.46.1
metadata
title: Ai Tutor
emoji: π
colorFrom: purple
colorTo: red
sdk: gradio
sdk_version: 5.16.1
app_file: app.py
pinned: false
short_description: Towards AI Academy lesson
Building and Deploying a Gradio UI on Hugging Face Spaces
Overview
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.
Setup
- Clone the repository.
git clone git@github.com:towardsai/ai-tutor-gradio-lesson.git
cd ai-tutor-gradio-lesson
- Create a
.env
file and add there your OpenAI API key. Its content should be something like:
OPENAI_API_KEY="sk-..."
- Create a local virtual environment, for example using the
venv
module. Then, activate it.
python -m venv venv
source venv/bin/activate
- Install the dependencies.
pip install -r requirements.txt
- Launch the Gradio app.
python app.py