Skip to content

Commit

Permalink
ONNX guide fixes (#1131)
Browse files Browse the repository at this point in the history
* contribution rendering

* fix links

* fix links
  • Loading branch information
aliabd committed Apr 29, 2022
1 parent edb2798 commit 391edc4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
@@ -1,8 +1,8 @@
# Building_from_the_ONNX_Model_Zoo
# Gradio and ONNX on Hugging Face

related_spaces: https://huggingface.co/spaces/onnx/EfficientNet-Lite4
tags: ONNX, SPACES
Contributed by Gradio and the [ONNX](https://onnx.ai/) team
Contributed by Gradio and the <a href="https://onnx.ai/">ONNX</a> team

## Introduction

Expand All @@ -28,11 +28,11 @@ The [ONNX Model Zoo](https://github.com/onnx/models) is a collection of pre-trai

Gradio lets users demo their machine learning models as a web app all in python code. Gradio wraps a python function into a user inferface and the demos can be launched inside jupyter notebooks, colab notebooks, as well as embedded in your own website and hosted on Hugging Face Spaces for free.

Get started here: https://gradio.app/getting_started
Get started [here](https://gradio.app/getting_started)

### Hugging Face Spaces

Hugging Face Spaces is a free hosting option for Gradio demos. Spaces comes with 3 SDK options: Gradio, Streamlit and Static HTML demos. Spaces can be public or private and the workflow is similar to github repos. There are over 2000+ spaces currently on Hugging Face. To learn more about spaces see: https://huggingface.co/spaces/launch
Hugging Face Spaces is a free hosting option for Gradio demos. Spaces comes with 3 SDK options: Gradio, Streamlit and Static HTML demos. Spaces can be public or private and the workflow is similar to github repos. There are over 2000+ spaces currently on Hugging Face. Learn more about spaces [here](https://huggingface.co/spaces/launch).

### Hugging Face Models

Expand Down Expand Up @@ -134,9 +134,9 @@ gr.Interface(inference, gr.inputs.Image(type="filepath"), "label", title=title,
## How to contribute Gradio demos on HF spaces using ONNX models

* Add model to the [onnx model zoo](https://github.com/onnx/models/blob/main/.github/PULL_REQUEST_TEMPLATE.md)
* Create an account on Hugging Face: https://huggingface.co/join
* Create an account on Hugging Face [here](https://huggingface.co/join).
* See list of models left to add to ONNX organization, please refer to the table with the [Models list](https://github.com/onnx/models#models)
* Add Gradio Demo under your username, see blog for setting up Gradio Demo on Hugging Face: https://huggingface.co/blog/gradio-spaces
* Request to join ONNX Organization: https://huggingface.co/onnx
* Add Gradio Demo under your username, see this [blog post](https://huggingface.co/blog/gradio-spaces) for setting up Gradio Demo on Hugging Face.
* Request to join ONNX Organization [here](https://huggingface.co/onnx).
* Once approved transfer model from your username to ONNX organization
* Add a badge for model in model table, see examples in [Models list](https://github.com/onnx/models#models)
2 changes: 1 addition & 1 deletion website/homepage/render_html.py
Expand Up @@ -62,7 +62,7 @@ def render_index():
guide_name = guide[:-3]
pretty_guide_name = " ".join(
[
word.capitalize().replace("Ml", "ML").replace("Gan", "GAN").replace("Api", "API")
word.capitalize().replace("Ml", "ML").replace("Gan", "GAN").replace("Api", "API").replace("Onnx", "ONNX")
for word in guide_name.split("_")
]
)
Expand Down

0 comments on commit 391edc4

Please sign in to comment.