zman35 commited on
Commit
cc6fccf
·
verified ·
1 Parent(s): 1049c61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -12
app.py CHANGED
@@ -214,18 +214,17 @@ def generate_risk_matrix():
214
  return fig
215
 
216
  # 🚀 App UI
217
- app = gr.TabbedInterface(
218
- interface_list=[
219
- gr.Interface(
220
- fn=run_preset_strategy,
221
- inputs=gr.Dropdown(
222
- choices=list(strategy_presets.keys()),
223
- label="Select Strategy",
224
- value=None # Prevent auto-run on load
225
- ),
226
- outputs=["dataframe", "json", gr.Plot(), "text"],
227
- title="🎯 Preset Mode"
228
- ),
229
 
230
  gr.Interface(
231
  fn=run_manual_sim,
 
214
  return fig
215
 
216
  # 🚀 App UI
217
+ gr.Interface(
218
+ fn=run_preset_strategy,
219
+ inputs=gr.Dropdown(
220
+ choices=["None"] + list(strategy_presets.keys()),
221
+ label="Select Strategy",
222
+ value="None" # Default to "None"
223
+ ),
224
+ outputs=["dataframe", "json", gr.Plot(), "text"],
225
+ title="🎯 Preset Mode"
226
+ ),
227
+
 
228
 
229
  gr.Interface(
230
  fn=run_manual_sim,