suryadev1 commited on
Commit
890efcc
·
1 Parent(s): 6841b7c

added the subprocess

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -115,17 +115,17 @@ def process_file(model_name,inc_slider,progress=Progress(track_tqdm=True)):
115
  opt_task_groups = ['opt_task1' if test_info.loc[idx, 6] == 0 else 'opt_task2' for idx in selected_rows_df2.index]
116
  progress(0.2, desc="Files create and saved!! Now Executing models")
117
  print("finetuned task: ",finetune_task)
118
- # subprocess.run([
119
- # "python", "new_test_saved_finetuned_model.py",
120
- # "-workspace_name", "ratio_proportion_change3_2223/sch_largest_100-coded",
121
- # "-finetune_task", finetune_task,
122
- # "-test_dataset_path","../../../../fileHandler/selected_rows.txt",
123
- # # "-test_label_path","../../../../train_label.txt",
124
- # "-finetuned_bert_classifier_checkpoint",
125
- # "ratio_proportion_change3_2223/sch_largest_100-coded/output/highGRschool10/bert_fine_tuned.model.ep42",
126
- # "-e",str(1),
127
- # "-b",str(1000)
128
- # ])
129
  progress(0.5,desc="Model execution completed!! Now performing analysis on the results")
130
 
131
  # Load tlb and plb
 
115
  opt_task_groups = ['opt_task1' if test_info.loc[idx, 6] == 0 else 'opt_task2' for idx in selected_rows_df2.index]
116
  progress(0.2, desc="Files create and saved!! Now Executing models")
117
  print("finetuned task: ",finetune_task)
118
+ subprocess.run([
119
+ "python", "new_test_saved_finetuned_model.py",
120
+ "-workspace_name", "ratio_proportion_change3_2223/sch_largest_100-coded",
121
+ "-finetune_task", finetune_task,
122
+ "-test_dataset_path","../../../../fileHandler/selected_rows.txt",
123
+ # "-test_label_path","../../../../train_label.txt",
124
+ "-finetuned_bert_classifier_checkpoint",
125
+ "ratio_proportion_change3_2223/sch_largest_100-coded/output/highGRschool10/bert_fine_tuned.model.ep42",
126
+ "-e",str(1),
127
+ "-b",str(1000)
128
+ ])
129
  progress(0.5,desc="Model execution completed!! Now performing analysis on the results")
130
 
131
  # Load tlb and plb