Spaces:
Sleeping
Sleeping
app.py
CHANGED
|
@@ -20,12 +20,12 @@ import view
|
|
| 20 |
|
| 21 |
def parse_args(args):
|
| 22 |
parser = argparse.ArgumentParser(description="CBD Classification")
|
| 23 |
-
parser.add_argument('--data_dir', type=str, default="./")
|
| 24 |
-
parser.add_argument('--excel_file', type=str, default="
|
| 25 |
parser.add_argument('--mode', type=str, default="train")
|
| 26 |
parser.add_argument('--scale', type=bool, default=True)
|
| 27 |
parser.add_argument('--smote', type=bool, default=True)
|
| 28 |
-
parser.add_argument('--model_name_or_path', type=str, default="./
|
| 29 |
|
| 30 |
return parser.parse_args(args)
|
| 31 |
|
|
@@ -142,7 +142,7 @@ if __name__ == '__main__':
|
|
| 142 |
gr.Markdown(description)
|
| 143 |
with gr.Row():
|
| 144 |
with gr.Column():
|
| 145 |
-
tabular_input = gr.Dataframe(headers= tabular_header, datatype= tabular_dtype, label="Tabular Input", type="array", interactive=True, row_count=1, col_count=
|
| 146 |
info = gr.Textbox(lines=1, label="Patient info", visible = False)
|
| 147 |
|
| 148 |
with gr.Accordion("Parameters", open=False) as parameter_row:
|
|
|
|
| 20 |
|
| 21 |
def parse_args(args):
|
| 22 |
parser = argparse.ArgumentParser(description="CBD Classification")
|
| 23 |
+
parser.add_argument('--data_dir', type=str, default="./data/")
|
| 24 |
+
parser.add_argument('--excel_file', type=str, default="DUMC_final.csv")
|
| 25 |
parser.add_argument('--mode', type=str, default="train")
|
| 26 |
parser.add_argument('--scale', type=bool, default=True)
|
| 27 |
parser.add_argument('--smote', type=bool, default=True)
|
| 28 |
+
parser.add_argument('--model_name_or_path', type=str, default="./data/model", choices=[])
|
| 29 |
|
| 30 |
return parser.parse_args(args)
|
| 31 |
|
|
|
|
| 142 |
gr.Markdown(description)
|
| 143 |
with gr.Row():
|
| 144 |
with gr.Column():
|
| 145 |
+
tabular_input = gr.Dataframe(headers= tabular_header, datatype= tabular_dtype, label="Tabular Input", type="array", interactive=True, row_count=1, col_count=13)
|
| 146 |
info = gr.Textbox(lines=1, label="Patient info", visible = False)
|
| 147 |
|
| 148 |
with gr.Accordion("Parameters", open=False) as parameter_row:
|