Update app.py
Browse files
app.py
CHANGED
@@ -186,6 +186,10 @@ def calculate_shap_fn(texts, model, cfg):
|
|
186 |
|
187 |
|
188 |
def calculate_shap_values_core(model_choice, organism_choice, sequences, cfg=Config()):
|
|
|
|
|
|
|
|
|
189 |
cfg.device = "cuda" if torch.cuda.is_available() else "cpu"
|
190 |
|
191 |
seed_everything(cfg.seed)
|
|
|
186 |
|
187 |
|
188 |
def calculate_shap_values_core(model_choice, organism_choice, sequences, cfg=Config()):
|
189 |
+
cell_line = "HeLa" if organism_choice == "Human" else "NIH3T3"
|
190 |
+
cfg.model = f"sagawa/PLTNUM-{model_choice}-{cell_line}"
|
191 |
+
cfg.architecture = model_choice
|
192 |
+
cfg.model_path = f"sagawa/PLTNUM-{model_choice}-{cell_line}"
|
193 |
cfg.device = "cuda" if torch.cuda.is_available() else "cpu"
|
194 |
|
195 |
seed_everything(cfg.seed)
|