Spaces:
Running
Running
Update gradio_app.py
Browse files- gradio_app.py +4 -2
gradio_app.py
CHANGED
|
@@ -39,7 +39,7 @@ class NoTargetConfig(DrugGENConfig):
|
|
| 39 |
|
| 40 |
model_configs = {
|
| 41 |
"DrugGEN": DrugGENConfig(),
|
| 42 |
-
"
|
| 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 |
|