File size: 1,220 Bytes
64b2c46
 
da6486a
 
 
 
 
 
 
64b2c46
da6486a
 
5a52013
da6486a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91991c5
64b2c46
da6486a
d698e13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import gradio as gr

# Configuration
COMMUNITY_NAME = "TinyModels 🤏⚡"
LOGO_PATH = "Com logo.png"
DESCRIPTION = """
### Big intelligence. Tiny Parameters.
**TinyModels** is a collaborative space dedicated to building small, fast, production-ready models 
that punch way above their weight. No bloat. No nonsense. 

*Just models that work — on your laptop, your phone, or your API.*
"""

# Building the App
with gr.Blocks(css="style.css", theme=gr.themes.Soft()) as app:
    with gr.Column(elem_id="card"):
        # Display the Logo
        gr.Image(
            value=LOGO_PATH, 
            elem_id="logo-img",
            show_label=False, 
            container=False,
            interactive=False
        )
        
        # Display Title and Description
        gr.Markdown(f"## {COMMUNITY_NAME}")
        gr.Markdown(DESCRIPTION, elem_classes="desc-text")
        
        # Action Buttons
        with gr.Row():
            gr.Button("Explore Models", variant="primary", link="https://huggingface.co/TinyModels")
            gr.Button("Join Community", variant="secondary", link="https://huggingface.co/join/TinyModels")

if __name__ == "__main__":
    app.launch(server_name="0.0.0.0", server_port=7860)