hbhzm commited on
Commit
85a8874
·
verified ·
1 Parent(s): 623e529

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,11 +18,11 @@ def predict(model_version, dataset_name, input_type, file=None, smiles=None):
18
  if model_version == "Vanilla Chemprop":
19
  model_dir = "chemprop"
20
  model_path = f"model_weight/{dataset_name}/best_unbalanced.pt"
21
- script_path = "chemprop/chemprop/cli/predict"
22
  else:
23
  model_dir = "chemprop_updated"
24
  model_path = f"model_weight/{dataset_name}/best_bert_fusion.pt"
25
- script_path = "chemprop-updated/chemprop_updated/cli/predict"
26
 
27
  # Prepare input file
28
  if input_type == "Upload CSV":
 
18
  if model_version == "Vanilla Chemprop":
19
  model_dir = "chemprop"
20
  model_path = f"model_weight/{dataset_name}/best_unbalanced.pt"
21
+ script_path = "chemprop/chemprop/cli/predict.py"
22
  else:
23
  model_dir = "chemprop_updated"
24
  model_path = f"model_weight/{dataset_name}/best_bert_fusion.pt"
25
+ script_path = "chemprop-updated/chemprop_updated/cli/predict.py"
26
 
27
  # Prepare input file
28
  if input_type == "Upload CSV":