Spaces:
Runtime error
Runtime error
Changed the example prompts to display on two pages.
Browse files
app.py
CHANGED
|
@@ -218,22 +218,31 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="teal", secondary_hue="orange"))
|
|
| 218 |
)
|
| 219 |
with gr.Column(scale=1):
|
| 220 |
gr.Markdown("### ✨ Example Prompts:")
|
| 221 |
-
gr.
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 237 |
|
| 238 |
submit_button = gr.Button("🚀 Simulate & Analyze", variant="primary")
|
| 239 |
|
|
|
|
| 218 |
)
|
| 219 |
with gr.Column(scale=1):
|
| 220 |
gr.Markdown("### ✨ Example Prompts:")
|
| 221 |
+
with gr.Tabs():
|
| 222 |
+
with gr.TabItem("Simple Molecules"):
|
| 223 |
+
gr.Examples(
|
| 224 |
+
examples=[
|
| 225 |
+
"Optimize a water molecule (H2O) using EMT and show the final geometry and energy.",
|
| 226 |
+
"Optimize a CO molecule using BFGS and show its bond length.",
|
| 227 |
+
"Build a methane molecule (CH4) and calculate its energy with EMT.",
|
| 228 |
+
"Simulate a single gold (Au) atom.",
|
| 229 |
+
"Calculate the binding energy of an O2 molecule."
|
| 230 |
+
],
|
| 231 |
+
inputs=[user_query_input],
|
| 232 |
+
label="Simple Molecules"
|
| 233 |
+
)
|
| 234 |
+
with gr.TabItem("Complex Simulations"):
|
| 235 |
+
gr.Examples(
|
| 236 |
+
examples=[
|
| 237 |
+
"Simulate a basic alcohol molecule (e.g., methanol) and report key bond lengths.",
|
| 238 |
+
"Relax an ammonia molecule (NH3) and display its bond angles.",
|
| 239 |
+
"Optimize a CO2 molecule and display its linearity.",
|
| 240 |
+
"Simulate a water dimer and analyze the hydrogen bond length.",
|
| 241 |
+
"Create a small gold cluster (Au3) and calculate its binding energy."
|
| 242 |
+
],
|
| 243 |
+
inputs=[user_query_input],
|
| 244 |
+
label="Complex Simulations"
|
| 245 |
+
)
|
| 246 |
|
| 247 |
submit_button = gr.Button("🚀 Simulate & Analyze", variant="primary")
|
| 248 |
|