Spaces:
Running
on
Zero
UI Layout Flow:
Browse files1. Input-Sektion
- Text Input + Optionen
- Process Button
- Sidebar mit Architecture + Quick Examples
2. Results-Sektion
- Summary
- Visualizations (Curvature + 3D Plot)
- Detailed JSON (Accordion)
3. Examples-Sektion ⭐ NEU
- Schöne Überschrift: "🧬 Try These Cutting-Edge Examples"
- 15 cutting-edge Domain-Beispiele in gr.Examples
- Klare Anweisung: "Click any example above to automatically fill..."
4. Footer
- Contact CTA + Mathematical Context
🎯 Benutzer-Experience:
1. Input eingeben → Process Button klicken
2. Results analysieren → Visualizations anschauen
3. Examples ausprobieren → Cutting-edge Domains testen
Die Examples sind jetzt nach den Results platziert, sodass Benutzer erst ihr Ergebnis sehen und
dann inspiriert werden, weitere Beispiele auszuprobieren! 🚀
@@ -1805,29 +1805,6 @@ def create_beautiful_interface():
|
|
1805 |
variant="primary",
|
1806 |
size="lg"
|
1807 |
)
|
1808 |
-
|
1809 |
-
# Enhanced examples with cutting-edge domains
|
1810 |
-
gr.Examples(
|
1811 |
-
examples=[
|
1812 |
-
["Dock the kinase inhibitor with the phenyl ring parallel to the hinge backbone.", True, True, 256],
|
1813 |
-
["Embed the fluxonium qubit 5 nm above the ground plane, aligned to the Φ = 0.5 Φ₀ sweet spot.", True, True, 256],
|
1814 |
-
["Arrange four THF molecules tetrahedrally around Li⁺, 2.1 Å Li–O distance.", True, True, 256],
|
1815 |
-
["Stack perovskite unit cells along ⟨110⟩ with 2 nm inter-layer gap.", True, True, 256],
|
1816 |
-
["Orient the Pt(111) terrace so CO binds atop, 1.8 Å Pt–C bond length.", True, True, 256],
|
1817 |
-
["Weave carbon nanotubes into a 3D lattice with 60° torsion for negative Poisson ratio.", True, True, 256],
|
1818 |
-
["Shape the magnetic flux surface into a D-shaped cross-section, R = 3.5 m, a = 1.2 m.", True, True, 256],
|
1819 |
-
["Pack the α-helix against the β-sheet at a 35° inter-domain angle.", True, True, 256],
|
1820 |
-
["Place the SQUID loop 10 μm above the Nb stripline, aligned to the magnetic bias line.", True, True, 256],
|
1821 |
-
["Segregate the fullerene domains 5 nm from the polymer backbone in vertical columns.", True, True, 256],
|
1822 |
-
["Define the SN2 trajectory along the C–O bond axis, 180° inversion angle.", True, True, 256],
|
1823 |
-
["Embed Si nanowires in a zig-zag pattern with 20 nm pitch to scatter phonons.", True, True, 256],
|
1824 |
-
["Place the aluminum bracket flush against the jig, 5 cm left of the drill bit.", True, True, 256],
|
1825 |
-
["Shift the electronics pallet three bays toward aisle C, top tier only.", True, True, 256],
|
1826 |
-
["Float the navy couch 30 cm from the bay window, facing the TV.", True, True, 256]
|
1827 |
-
],
|
1828 |
-
inputs=[text_input, enable_geometry, show_visualization, max_length],
|
1829 |
-
label="🧬 Click to try cutting-edge domain examples"
|
1830 |
-
)
|
1831 |
|
1832 |
with gr.Column(scale=1):
|
1833 |
gr.HTML("""
|
@@ -1909,6 +1886,30 @@ def create_beautiful_interface():
|
|
1909 |
lines=15
|
1910 |
)
|
1911 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1912 |
# Event handlers
|
1913 |
process_btn.click(
|
1914 |
fn=real_gasm_process_text,
|
|
|
1805 |
variant="primary",
|
1806 |
size="lg"
|
1807 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1808 |
|
1809 |
with gr.Column(scale=1):
|
1810 |
gr.HTML("""
|
|
|
1886 |
lines=15
|
1887 |
)
|
1888 |
|
1889 |
+
# Enhanced examples with cutting-edge domains - placed after results
|
1890 |
+
gr.HTML("<h3 style='color: white; margin: 30px 0 15px 0; text-align: center;'>🧬 Try These Cutting-Edge Examples</h3>")
|
1891 |
+
gr.Examples(
|
1892 |
+
examples=[
|
1893 |
+
["Dock the kinase inhibitor with the phenyl ring parallel to the hinge backbone.", True, True, 256],
|
1894 |
+
["Embed the fluxonium qubit 5 nm above the ground plane, aligned to the Φ = 0.5 Φ₀ sweet spot.", True, True, 256],
|
1895 |
+
["Arrange four THF molecules tetrahedrally around Li⁺, 2.1 Å Li–O distance.", True, True, 256],
|
1896 |
+
["Stack perovskite unit cells along ⟨110⟩ with 2 nm inter-layer gap.", True, True, 256],
|
1897 |
+
["Orient the Pt(111) terrace so CO binds atop, 1.8 Å Pt–C bond length.", True, True, 256],
|
1898 |
+
["Weave carbon nanotubes into a 3D lattice with 60° torsion for negative Poisson ratio.", True, True, 256],
|
1899 |
+
["Shape the magnetic flux surface into a D-shaped cross-section, R = 3.5 m, a = 1.2 m.", True, True, 256],
|
1900 |
+
["Pack the α-helix against the β-sheet at a 35° inter-domain angle.", True, True, 256],
|
1901 |
+
["Place the SQUID loop 10 μm above the Nb stripline, aligned to the magnetic bias line.", True, True, 256],
|
1902 |
+
["Segregate the fullerene domains 5 nm from the polymer backbone in vertical columns.", True, True, 256],
|
1903 |
+
["Define the SN2 trajectory along the C–O bond axis, 180° inversion angle.", True, True, 256],
|
1904 |
+
["Embed Si nanowires in a zig-zag pattern with 20 nm pitch to scatter phonons.", True, True, 256],
|
1905 |
+
["Place the aluminum bracket flush against the jig, 5 cm left of the drill bit.", True, True, 256],
|
1906 |
+
["Shift the electronics pallet three bays toward aisle C, top tier only.", True, True, 256],
|
1907 |
+
["Float the navy couch 30 cm from the bay window, facing the TV.", True, True, 256]
|
1908 |
+
],
|
1909 |
+
inputs=[text_input, enable_geometry, show_visualization, max_length],
|
1910 |
+
label="Click any example above to automatically fill the input and run GASM analysis"
|
1911 |
+
)
|
1912 |
+
|
1913 |
# Event handlers
|
1914 |
process_btn.click(
|
1915 |
fn=real_gasm_process_text,
|