mgyigit commited on
Commit
0cd6b71
1 Parent(s): c83a377

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +4 -2
gradio_app.py CHANGED
@@ -39,7 +39,7 @@ class NoTargetConfig(DrugGENConfig):
39
 
40
  model_configs = {
41
  "DrugGEN": DrugGENConfig(),
42
- "DrugGEN-NoTarget": NoTargetConfig(),
43
  }
44
 
45
 
@@ -49,7 +49,9 @@ def function(model_name: str, num_molecules: int, seed_num: int) -> tuple[PIL.Im
49
  Returns:
50
  image, score_df, file path
51
  '''
52
-
 
 
53
  config = model_configs[model_name]
54
  config.sample_num = num_molecules
55
 
 
39
 
40
  model_configs = {
41
  "DrugGEN": DrugGENConfig(),
42
+ "NoTarget": NoTargetConfig(),
43
  }
44
 
45
 
 
49
  Returns:
50
  image, score_df, file path
51
  '''
52
+ if model_name == "DrugGEN-NoTarget":
53
+ model_name = "NoTarget"
54
+
55
  config = model_configs[model_name]
56
  config.sample_num = num_molecules
57