Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def process_excel_file(file_path, non_question_columns_str):
|
|
12 |
|
13 |
# Convert non-question columns string to a list and make it lowercase for comparison
|
14 |
non_question_columns = [col.strip().lower() for col in non_question_columns_str.split(',')]
|
15 |
-
# Identify columns that are considered as questions and non-questions
|
16 |
question_columns = [col for col in df.columns if col.lower() not in non_question_columns]
|
17 |
non_question_data = df[[col for col in df.columns if col.lower() in non_question_columns]]
|
18 |
|
@@ -99,7 +99,6 @@ iface = gr.Interface(
|
|
99 |
inputs=[
|
100 |
gr.File(file_count="single", type="filepath"),
|
101 |
gr.Textbox(lines=2, placeholder="Column1, Column2, Column3, ...", label="Non-Question Columns"),
|
102 |
-
# Remove model_id if it's set globally or passed in another way
|
103 |
],
|
104 |
outputs=gr.File(label="Download Graded Results"),
|
105 |
title="Essay Question Grading",
|
|
|
12 |
|
13 |
# Convert non-question columns string to a list and make it lowercase for comparison
|
14 |
non_question_columns = [col.strip().lower() for col in non_question_columns_str.split(',')]
|
15 |
+
# Identify columns that are considered as questions and non-questions(user defined)
|
16 |
question_columns = [col for col in df.columns if col.lower() not in non_question_columns]
|
17 |
non_question_data = df[[col for col in df.columns if col.lower() in non_question_columns]]
|
18 |
|
|
|
99 |
inputs=[
|
100 |
gr.File(file_count="single", type="filepath"),
|
101 |
gr.Textbox(lines=2, placeholder="Column1, Column2, Column3, ...", label="Non-Question Columns"),
|
|
|
102 |
],
|
103 |
outputs=gr.File(label="Download Graded Results"),
|
104 |
title="Essay Question Grading",
|