QuantaSparkLabs commited on
Commit
da6486a
·
verified ·
1 Parent(s): 6db4c27

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +31 -12
app.py CHANGED
@@ -1,17 +1,36 @@
1
  import gradio as gr
2
 
3
- community_name = "TinyModels"
4
- description = """QS-OpenLab is a collaborative space dedicated to exploring and advancing quantum science,
5
- AI integration, and open research initiatives. Our goal is to bring together enthusiasts, researchers,
6
- and developers to share projects, ideas, and tools in a friendly and open environment."""
 
 
 
7
 
8
- Logo path = "Com logo.png"
 
9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
 
11
- with gr.Blocks() as app:
12
- with gr.Column(elem_id="card", scale=1):
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()