Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -92,7 +92,6 @@ def rft_rcqm_unification_lab(p1_early_input, p2_early_input, nex_coupling_input)
|
|
| 92 |
subplot_titles=('Unified Expansion (H_RFT)', 'JWST Maturity Solution')
|
| 93 |
)
|
| 94 |
|
| 95 |
-
# Hubble curve
|
| 96 |
fig.add_trace(
|
| 97 |
go.Scatter(x=z_range, y=h_vals, mode='lines',
|
| 98 |
line=dict(color='#FF00FF', width=3)),
|
|
@@ -105,7 +104,6 @@ def rft_rcqm_unification_lab(p1_early_input, p2_early_input, nex_coupling_input)
|
|
| 105 |
annotation_position='bottom right'
|
| 106 |
)
|
| 107 |
|
| 108 |
-
# Maturity curves
|
| 109 |
z_high = np.linspace(7, 12, 100)
|
| 110 |
fig.add_trace(
|
| 111 |
go.Scatter(x=z_high, y=smd_rft(z_high),
|
|
@@ -301,11 +299,15 @@ solar1_tab = gr.TabbedInterface(
|
|
| 301 |
["Verified Manifold", "Dynamic Generator"]
|
| 302 |
)
|
| 303 |
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 309 |
|
| 310 |
if __name__ == "__main__":
|
| 311 |
demo.launch()
|
|
|
|
| 92 |
subplot_titles=('Unified Expansion (H_RFT)', 'JWST Maturity Solution')
|
| 93 |
)
|
| 94 |
|
|
|
|
| 95 |
fig.add_trace(
|
| 96 |
go.Scatter(x=z_range, y=h_vals, mode='lines',
|
| 97 |
line=dict(color='#FF00FF', width=3)),
|
|
|
|
| 104 |
annotation_position='bottom right'
|
| 105 |
)
|
| 106 |
|
|
|
|
| 107 |
z_high = np.linspace(7, 12, 100)
|
| 108 |
fig.add_trace(
|
| 109 |
go.Scatter(x=z_high, y=smd_rft(z_high),
|
|
|
|
| 299 |
["Verified Manifold", "Dynamic Generator"]
|
| 300 |
)
|
| 301 |
|
| 302 |
+
# ============================================================
|
| 303 |
+
# TOP-LEVEL BLOCKS (CSS APPLIED HERE)
|
| 304 |
+
# ============================================================
|
| 305 |
+
|
| 306 |
+
with gr.Blocks(css=custom_css) as demo:
|
| 307 |
+
gr.TabbedInterface(
|
| 308 |
+
[rft_tab, solar1_tab],
|
| 309 |
+
["RFT Expansion Lab", "Solar1 Manifold Explorer"]
|
| 310 |
+
)
|
| 311 |
|
| 312 |
if __name__ == "__main__":
|
| 313 |
demo.launch()
|