coredipper commited on
Commit
d3ecd6d
·
verified ·
1 Parent(s): 8f091e4

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -297,14 +297,14 @@ def _run_custom(preset_name, ep_thresh, atp_thresh, max_rate):
297
  # ---------------------------------------------------------------------------
298
 
299
  def build_app():
300
- with gr.Blocks(title="Operon Watcher Dashboard", theme=gr.themes.Base()) as demo:
301
  gr.Markdown("# Operon Watcher Dashboard\nSignal classification and intervention timeline for multi-stage workflows.")
302
 
303
  with gr.Tab("Signal Classification"):
304
- preset_dd = gr.Dropdown(list(PRESETS.keys()), label="Preset Scenario", value="Normal Run")
305
  load_btn = gr.Button("Load & Run")
306
- signal_out = gr.HTML(label="Signals")
307
- timeline_out = gr.HTML(label="Timeline")
308
  load_btn.click(_load_preset, inputs=[preset_dd], outputs=[signal_out, timeline_out])
309
 
310
  with gr.Tab("Intervention Timeline"):
@@ -312,12 +312,12 @@ def build_app():
312
 
313
  with gr.Tab("Live Configuration"):
314
  gr.Markdown("Adjust thresholds and re-run the selected scenario.")
315
- preset_dd2 = gr.Dropdown(list(PRESETS.keys()), label="Preset", value="Normal Run")
316
- ep_slider = gr.Slider(0.05, 0.8, value=0.3, step=0.05, label="Epiplexity Stagnant Threshold")
317
- atp_slider = gr.Slider(0.01, 0.5, value=0.1, step=0.01, label="ATP Low Fraction")
318
- rate_slider = gr.Slider(0.1, 1.0, value=0.5, step=0.1, label="Max Intervention Rate")
319
  run_btn = gr.Button("Run with Custom Config")
320
- custom_out = gr.HTML(label="Result")
321
  run_btn.click(_run_custom, inputs=[preset_dd2, ep_slider, atp_slider, rate_slider], outputs=[custom_out])
322
 
323
  return demo
 
297
  # ---------------------------------------------------------------------------
298
 
299
  def build_app():
300
+ with gr.Blocks(title="Operon Watcher Dashboard") as demo:
301
  gr.Markdown("# Operon Watcher Dashboard\nSignal classification and intervention timeline for multi-stage workflows.")
302
 
303
  with gr.Tab("Signal Classification"):
304
+ preset_dd = gr.Dropdown(choices=list(PRESETS.keys()), label="Preset Scenario", value="Normal Run")
305
  load_btn = gr.Button("Load & Run")
306
+ signal_out = gr.HTML()
307
+ timeline_out = gr.HTML()
308
  load_btn.click(_load_preset, inputs=[preset_dd], outputs=[signal_out, timeline_out])
309
 
310
  with gr.Tab("Intervention Timeline"):
 
312
 
313
  with gr.Tab("Live Configuration"):
314
  gr.Markdown("Adjust thresholds and re-run the selected scenario.")
315
+ preset_dd2 = gr.Dropdown(choices=list(PRESETS.keys()), label="Preset", value="Normal Run")
316
+ ep_slider = gr.Slider(minimum=0.05, maximum=0.8, value=0.3, step=0.05, label="Epiplexity Stagnant Threshold")
317
+ atp_slider = gr.Slider(minimum=0.01, maximum=0.5, value=0.1, step=0.01, label="ATP Low Fraction")
318
+ rate_slider = gr.Slider(minimum=0.1, maximum=1.0, value=0.5, step=0.1, label="Max Intervention Rate")
319
  run_btn = gr.Button("Run with Custom Config")
320
+ custom_out = gr.HTML()
321
  run_btn.click(_run_custom, inputs=[preset_dd2, ep_slider, atp_slider, rate_slider], outputs=[custom_out])
322
 
323
  return demo