SKekana commited on
Commit
c63827c
·
1 Parent(s): 690fced

Changed the example prompts to display on two pages.

Browse files
Files changed (1) hide show
  1. app.py +25 -16
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.Examples(
222
- examples=[
223
- "Optimize a water molecule (H2O) using EMT and show the final geometry and energy.",
224
- "Optimize a CO molecule using BFGS and show its bond length.",
225
- "Simulate a basic alcohol molecule (e.g., methanol) and report key bond lengths.",
226
- "Build a methane molecule (CH4) and calculate its energy with EMT.",
227
- "Simulate a single gold (Au) atom.",
228
- "Perform a geometry optimization for benzene using EMT.",
229
- "Calculate the binding energy of an O2 molecule.",
230
- "Relax an ammonia molecule (NH3) and display its bond angles.",
231
- "Build a silicon crystal unit cell and calculate its total energy.",
232
- "Optimize a CO2 molecule and display its linearity.",
233
- "Simulate a water dimer and analyze the hydrogen bond length."
234
- ],
235
- inputs=[user_query_input]
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