https://github.com/tyh71/gradio-ml-skeleton
Gradio Skeleton App for ML/DL rapid model prototyping.
https://github.com/tyh71/gradio-ml-skeleton
Last synced: about 1 year ago
JSON representation
Gradio Skeleton App for ML/DL rapid model prototyping.
- Host: GitHub
- URL: https://github.com/tyh71/gradio-ml-skeleton
- Owner: TYH71
- License: gpl-3.0
- Created: 2022-12-02T05:33:22.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-25T06:14:46.000Z (almost 3 years ago)
- Last Synced: 2025-02-05T20:03:40.660Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 248 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
---
title: Gradio ML Skeleton
emoji: 💀
colorFrom: red
colorTo: pink
sdk: gradio
sdk_version: 3.8.2
app_file: app.py
pinned: false
---
# Gradio Model Server Skeleton
This repository contains a Gradio skeleton application which can be used to rapid prototype a demonstration app for your next machine learning/deep learning model.
To experiment and get a feeling on how to use this skeleton, a sample YOLOv5 object detection model is included in this proejct. Follow the installation and setup instructions to run the deep learning application.
## Pre-requisite & Setup
Ensure to have a Python environment before setting up, preferably Python 3.8+.
```sh
apt-get update
apt-get install ffmpeg libsm6 libxext6 -y
```
```sh
pip install -r requirements.txt
```
```sh
# for dev env, hot-reloading is enabled
gradio app.py
# for testing/UAT/prod env, ensure port number is cleared
python app.py --host 0.0.0.0 --port 7860
```
## Docker alternative
Alternatively, you can use docker to containerize the Gradio application.
```sh
# REQUIRED
export docker_repo_name=gradio-ml-skeleton
export docker_tag=dev_latest
# build an image from Dockerfile
sh build_docker.sh
```
```sh
# creates a container layer over the image
sh launch_docker.sh
```
## Application Preview