Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
# Descriptions for each Nexa product
|
4 |
+
nexa_descriptions = {
|
5 |
+
"Nexa Data Studio": "A full-stack data engineering suite for scientific ML. Includes synthetic dataset generation, tokenization, transformation, and pipeline automation.",
|
6 |
+
"Nexa Infrastructure": "A toolkit of infrastructure tools for ML optimization, compiler-level graph tuning, and CLI-based control systems (e.g., PyC, tuning scripts).",
|
7 |
+
"Nexa R&D": "A sandbox for experimental research and software on novel AI methods, such as hybrid optimizers, annealing schedulers, and architecture experiments."
|
8 |
+
}
|
9 |
+
|
10 |
+
nexa_links = {
|
11 |
+
"Nexa Data Studio": "https://huggingface.co/spaces/Allanatrix/Nexa-Data-Studio",
|
12 |
+
"Nexa Infrastructure": "https://huggingface.co/spaces/Allanatrix/Nexa-Infrastructure",
|
13 |
+
"Nexa R&D": "https://huggingface.co/spaces/Allanatrix/Nexa-R&D"
|
14 |
+
}
|
15 |
+
|
16 |
+
def show_details(product):
|
17 |
+
return f"### {product}\n\n{nexa_descriptions[product]}\n\n🔗 [Go to {product}]({nexa_links[product]})"
|
18 |
+
|
19 |
+
with gr.Blocks(title="Nexa Hub: Unified Platform for Scientific AI") as demo:
|
20 |
+
gr.Markdown("""
|
21 |
+
# 🚀 Nexa Hub
|
22 |
+
Welcome to **Nexa Hub**, the central interface for all Nexa tools.
|
23 |
+
Explore the modules below to learn more about each product and navigate to its dedicated space.
|
24 |
+
""")
|
25 |
+
|
26 |
+
with gr.Row():
|
27 |
+
product_dropdown = gr.Dropdown(label="Choose a Nexa Product", choices=list(nexa_descriptions.keys()))
|
28 |
+
|
29 |
+
output = gr.Markdown()
|
30 |
+
product_dropdown.change(fn=show_details, inputs=product_dropdown, outputs=output)
|
31 |
+
|
32 |
+
gr.Markdown("---")
|
33 |
+
gr.Markdown("Built and maintained by [Your Name] using open tooling, zero funding, and high-leverage engineering.")
|
34 |
+
|
35 |
+
if __name__ == "__main__":
|
36 |
+
demo.launch()
|