multimodalart HF Staff commited on
Commit
0b1825b
·
verified ·
1 Parent(s): fccae4d

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -263,7 +263,9 @@ with gr.Blocks(theme=gr.themes.Citrus(), title="MapPFN") as demo:
263
  )
264
  ctx_dd = gr.Dropdown(choices=context_choices("frangieh"), value="IFNγ",
265
  label="Cell context")
266
- treat_dd = gr.Dropdown(choices=[], label="Target gene perturbation (held-out test split)")
 
 
267
  with gr.Accordion("Inference settings", open=False):
268
  num_shots = gr.Slider(0, 8, value=8, step=1,
269
  label="In-context demonstrations (other treatments)")
 
263
  )
264
  ctx_dd = gr.Dropdown(choices=context_choices("frangieh"), value="IFNγ",
265
  label="Cell context")
266
+ _init_test = treatments_for("frangieh", "IFNγ")["test"]
267
+ treat_dd = gr.Dropdown(choices=_init_test, value=_init_test[0],
268
+ label="Target gene perturbation (held-out test split)")
269
  with gr.Accordion("Inference settings", open=False):
270
  num_shots = gr.Slider(0, 8, value=8, step=1,
271
  label="In-context demonstrations (other treatments)")