Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,17 +1,36 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
-
|
|
|
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
gr.Image(value=logo_path, interactive=False)
|
| 14 |
-
gr.Markdown(f"## {community_name}")
|
| 15 |
-
gr.Markdown(description)
|
| 16 |
-
|
| 17 |
-
app.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
# Configuration
|
| 4 |
+
COMMUNITY_NAME = "TinyModels 🤏⚡"
|
| 5 |
+
LOGO_PATH = "Com logo.png"
|
| 6 |
+
DESCRIPTION = """
|
| 7 |
+
### Big intelligence. Tiny Parameters.
|
| 8 |
+
**TinyModels** is a collaborative space dedicated to building small, fast, production-ready models
|
| 9 |
+
that punch way above their weight. No bloat. No nonsense.
|
| 10 |
|
| 11 |
+
*Just models that work — on your laptop, your phone, or your API.*
|
| 12 |
+
"""
|
| 13 |
|
| 14 |
+
# Building the App
|
| 15 |
+
with gr.Blocks(css="style.css", theme=gr.themes.Soft()) as app:
|
| 16 |
+
with gr.Column(elem_id="card"):
|
| 17 |
+
# Display the Logo
|
| 18 |
+
gr.Image(
|
| 19 |
+
value=LOGO_PATH,
|
| 20 |
+
elem_id="logo-img",
|
| 21 |
+
show_label=False,
|
| 22 |
+
container=False,
|
| 23 |
+
interactive=False
|
| 24 |
+
)
|
| 25 |
+
|
| 26 |
+
# Display Title and Description
|
| 27 |
+
gr.Markdown(f"## {COMMUNITY_NAME}")
|
| 28 |
+
gr.Markdown(DESCRIPTION, elem_classes="desc-text")
|
| 29 |
+
|
| 30 |
+
# Action Buttons
|
| 31 |
+
with gr.Row():
|
| 32 |
+
gr.Button("Explore Models", variant="primary", link="https://huggingface.co/TinyModels")
|
| 33 |
+
gr.Button("Join Community", variant="secondary", link="https://huggingface.co/join/TinyModels")
|
| 34 |
|
| 35 |
+
if __name__ == "__main__":
|
| 36 |
+
app.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|