Skip to content

towardsai/ai-tutor-gradio-lesson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Clone the repository.
git clone [email protected]:towardsai/ai-tutor-gradio-lesson.git
cd ai-tutor-gradio-lesson
  1. Create a .env file and add there your OpenAI API key. Its content should be something like:
OPENAI_API_KEY="sk-..."
  1. Create a local virtual environment, for example using the venv module. Then, activate it.
python -m venv venv
source venv/bin/activate
  1. Install the dependencies.
pip install -r requirements.txt
  1. Launch the Gradio app.
python app.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages