Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -29,6 +29,9 @@ def add_new_eval(
|
|
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 |
human_df = pd.read_csv(human_file)
|
34 |
human_df.to_csv(f"./src/data/representation_vectors/{representation_name}_human.csv", index=False)
|
@@ -93,7 +96,7 @@ with block:
|
|
93 |
|
94 |
with gr.Column():
|
95 |
human_file = gr.components.File(label="Click to Upload the representation file (csv) for Human dataset", file_count="single", type='filepath')
|
96 |
-
skempi_file = gr.components.File(label="Click to Upload the representation file (csv) for SKEMPI dataset", file_count="single", type='
|
97 |
|
98 |
submit_button = gr.Button("Submit Eval")
|
99 |
submission_result = gr.Markdown()
|
|
|
29 |
print(representation_name)
|
30 |
print(benchmark_type)
|
31 |
# Save human and skempi files under ./src/data/representation_vectors using pandas
|
32 |
+
print(human_file)
|
33 |
+
print(skempi_file)
|
34 |
+
return None
|
35 |
if human_file is not None:
|
36 |
human_df = pd.read_csv(human_file)
|
37 |
human_df.to_csv(f"./src/data/representation_vectors/{representation_name}_human.csv", index=False)
|
|
|
96 |
|
97 |
with gr.Column():
|
98 |
human_file = gr.components.File(label="Click to Upload the representation file (csv) for Human dataset", file_count="single", type='filepath')
|
99 |
+
skempi_file = gr.components.File(label="Click to Upload the representation file (csv) for SKEMPI dataset", file_count="single", type='binary')
|
100 |
|
101 |
submit_button = gr.Button("Submit Eval")
|
102 |
submission_result = gr.Markdown()
|