mgyigit commited on
Commit
e35c955
·
verified ·
1 Parent(s): bc3198a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -27,10 +27,12 @@ def add_new_eval(
27
  ):
28
  representation_name = model_name_textbox if revision_name_textbox == '' else revision_name_textbox
29
  print(representation_name)
 
30
  # Save human and skempi files under ./src/data/representation_vectors using pandas
31
  if human_file is not None:
32
- human_df = pd.read_csv(human_file)
33
- human_df.to_csv(f"./src/data/representation_vectors/{representation_name}_human.csv", index=False)
 
34
 
35
  return None
36
 
 
27
  ):
28
  representation_name = model_name_textbox if revision_name_textbox == '' else revision_name_textbox
29
  print(representation_name)
30
+ print(benchmark_type)
31
  # Save human and skempi files under ./src/data/representation_vectors using pandas
32
  if human_file is not None:
33
+ output_file_path = f"./src/data/representation_vectors/{representation_name}_human.csv"
34
+ with open(output_file_path, 'wb') as f:
35
+ f.write(human_file)
36
 
37
  return None
38