Spaces:
Runtime error
Runtime error
feat: π banner and shields are added
Browse filesSigned-off-by: Onuralp SEZER <thunderbirdtr@fedoraproject.org>
app.py
CHANGED
|
@@ -16,11 +16,29 @@ else:
|
|
| 16 |
|
| 17 |
TITLE = """<h1 align="center">Supervision Annotator Playground π</h1>"""
|
| 18 |
SUBTITLE = """<h2 align="center">Experiment with Supervision Annotators</h2>"""
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
<div style="text-align: center; display: flex; justify-content: center; align-items: center;">
|
| 21 |
<a href="https://huggingface.co/spaces/Roboflow/Annotators?duplicate=true">
|
| 22 |
<img src="https://bit.ly/3gLdBN6" alt="Duplicate Space" style="margin-right: 10px;">
|
| 23 |
</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
</div>
|
| 25 |
""" # noqa: E501 title/docs
|
| 26 |
|
|
@@ -166,7 +184,8 @@ purple_theme = theme = gr.themes.Soft(primary_hue=gr.themes.colors.purple).set(
|
|
| 166 |
with gr.Blocks(theme=purple_theme) as app:
|
| 167 |
gr.HTML(TITLE)
|
| 168 |
gr.HTML(SUBTITLE)
|
| 169 |
-
gr.HTML(
|
|
|
|
| 170 |
annotators = gr.CheckboxGroup(
|
| 171 |
choices=[
|
| 172 |
"BoundingBox",
|
|
|
|
| 16 |
|
| 17 |
TITLE = """<h1 align="center">Supervision Annotator Playground π</h1>"""
|
| 18 |
SUBTITLE = """<h2 align="center">Experiment with Supervision Annotators</h2>"""
|
| 19 |
+
BANNER = """
|
| 20 |
+
<div align="center">
|
| 21 |
+
<p>
|
| 22 |
+
<a align="center" href="https://supervision.roboflow.com/" target="_blank">
|
| 23 |
+
<img style="max-width: 50%; height: auto; margin: 0 auto; display: block; padding: 20"
|
| 24 |
+
src="https://media.roboflow.com/open-source/supervision/rf-supervision-banner.png?updatedAt=1678995927529">
|
| 25 |
+
</a>
|
| 26 |
+
</p>
|
| 27 |
+
</div>
|
| 28 |
+
""" # noqa: E501 title/docs
|
| 29 |
+
DESC = """
|
| 30 |
<div style="text-align: center; display: flex; justify-content: center; align-items: center;">
|
| 31 |
<a href="https://huggingface.co/spaces/Roboflow/Annotators?duplicate=true">
|
| 32 |
<img src="https://bit.ly/3gLdBN6" alt="Duplicate Space" style="margin-right: 10px;">
|
| 33 |
</a>
|
| 34 |
+
<a href="https://github.com/roboflow/supervision">
|
| 35 |
+
<img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/roboflow/supervision"
|
| 36 |
+
style="margin-right: 10px;">
|
| 37 |
+
</a>
|
| 38 |
+
<a href="https://colab.research.google.com/github/roboflow/supervision/blob/main/demo.ipynb">
|
| 39 |
+
<img alt="Open In Colab" src="https://colab.research.google.com/assets/colab-badge.svg"
|
| 40 |
+
style="margin-right: 10px;">
|
| 41 |
+
</a>
|
| 42 |
</div>
|
| 43 |
""" # noqa: E501 title/docs
|
| 44 |
|
|
|
|
| 184 |
with gr.Blocks(theme=purple_theme) as app:
|
| 185 |
gr.HTML(TITLE)
|
| 186 |
gr.HTML(SUBTITLE)
|
| 187 |
+
gr.HTML(BANNER)
|
| 188 |
+
gr.HTML(DESC)
|
| 189 |
annotators = gr.CheckboxGroup(
|
| 190 |
choices=[
|
| 191 |
"BoundingBox",
|