Spaces:
Running
Running
Update gradio_app.py
Browse files- gradio_app.py +4 -4
gradio_app.py
CHANGED
@@ -25,7 +25,7 @@ class DrugGENConfig:
|
|
25 |
heads=8
|
26 |
mlp_ratio=3
|
27 |
dropout=0.
|
28 |
-
log_sample_step=
|
29 |
set_seed=True
|
30 |
seed=10
|
31 |
|
@@ -43,15 +43,15 @@ model_configs = {
|
|
43 |
|
44 |
|
45 |
|
46 |
-
def function(model_name: str,
|
47 |
'''
|
48 |
Returns:
|
49 |
image, score_df, file path
|
50 |
'''
|
51 |
|
52 |
config = model_configs[model_name]
|
53 |
-
config.inference_sample_num =
|
54 |
-
config.seed =
|
55 |
|
56 |
inferer = Inference(config)
|
57 |
scores = inferer.inference() # create scores_df out of this
|
|
|
25 |
heads=8
|
26 |
mlp_ratio=3
|
27 |
dropout=0.
|
28 |
+
log_sample_step=100
|
29 |
set_seed=True
|
30 |
seed=10
|
31 |
|
|
|
43 |
|
44 |
|
45 |
|
46 |
+
def function(model_name: str, num_molecules: int, seed_num: int) -> tuple[PIL.Image, pd.DataFrame, str]:
|
47 |
'''
|
48 |
Returns:
|
49 |
image, score_df, file path
|
50 |
'''
|
51 |
|
52 |
config = model_configs[model_name]
|
53 |
+
config.inference_sample_num = num_molecules
|
54 |
+
config.seed = seed_num
|
55 |
|
56 |
inferer = Inference(config)
|
57 |
scores = inferer.inference() # create scores_df out of this
|