Mengyuan Liu commited on
Commit
6c21543
1 Parent(s): 73c1b48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -15,15 +15,15 @@ def on_confirm(dataset_radio, num_parts_dropdown, token_counts_radio, line_count
15
  cyclomatic_complexity_split = cyclomatic_complexity_radio
16
 
17
  dataframes = []
18
- script_path = os.path.abspath(__file__)
19
 
20
- # 获取当前脚本所在的目录
21
- script_dir = os.path.dirname(script_path)
22
 
23
- print("当前脚本文件的绝对路径:", script_path)
24
- print("当前脚本文件所在的目录:", script_dir)
25
  if token_counts_split=="Equal Frequency Partitioning":
26
- token_counts_df = pd.read_csv(f"/dividing_into_different_subsets/{num_parts}/QS/token_counts_QS.csv")
27
  dataframes.append(token_counts_df)
28
 
29
  if line_counts_split=="Equal Frequency Partitioning":
 
15
  cyclomatic_complexity_split = cyclomatic_complexity_radio
16
 
17
  dataframes = []
18
+ # script_path = os.path.abspath(__file__)
19
 
20
+ # # 获取当前脚本所在的目录
21
+ # script_dir = os.path.dirname(script_path)
22
 
23
+ # print("当前脚本文件的绝对路径:", script_path)
24
+ # print("当前脚本文件所在的目录:", script_dir)
25
  if token_counts_split=="Equal Frequency Partitioning":
26
+ token_counts_df = pd.read_csv(f"/home/user/app/dividing_into_different_subsets/{num_parts}/QS/token_counts_QS.csv")
27
  dataframes.append(token_counts_df)
28
 
29
  if line_counts_split=="Equal Frequency Partitioning":