Spaces:
Running
Running
add default value
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ save_name = "dataset/customized_neurosynth.csv"
|
|
50 |
example_df = pd.read_csv(file_name)
|
51 |
|
52 |
|
53 |
-
def infer(sex, race, num_sample
|
54 |
num_sample = int(num_sample)
|
55 |
col_dict = np.load("model/col_dict.npz", allow_pickle=True)['dict'].item()
|
56 |
input = np.load("model/kde_{}_{}.npz".format(race.lower(), sex.lower()), allow_pickle=True)['model'].item()
|
@@ -96,6 +96,7 @@ with gr.Blocks() as demo:
|
|
96 |
),
|
97 |
gr.Textbox(
|
98 |
label='Number of subject',
|
|
|
99 |
show_label=True,
|
100 |
placeholder='Enter sample size (in integer) ...'
|
101 |
)],
|
|
|
50 |
example_df = pd.read_csv(file_name)
|
51 |
|
52 |
|
53 |
+
def infer(sex, race, num_sample):
|
54 |
num_sample = int(num_sample)
|
55 |
col_dict = np.load("model/col_dict.npz", allow_pickle=True)['dict'].item()
|
56 |
input = np.load("model/kde_{}_{}.npz".format(race.lower(), sex.lower()), allow_pickle=True)['model'].item()
|
|
|
96 |
),
|
97 |
gr.Textbox(
|
98 |
label='Number of subject',
|
99 |
+
value=10,
|
100 |
show_label=True,
|
101 |
placeholder='Enter sample size (in integer) ...'
|
102 |
)],
|