Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -82,8 +82,8 @@ ta_proposal = read_pdf(file_path)
|
|
82 |
file_path = "data/capy_proposal.pdf"
|
83 |
capy_proposal = read_pdf(file_path)
|
84 |
|
85 |
-
file_path = "data/mamnon_proposal.pdf"
|
86 |
-
input = read_pdf(file_path)
|
87 |
|
88 |
# Function to grade the essay using GPT-4
|
89 |
def grade_essay(input):
|
@@ -171,8 +171,8 @@ def main():
|
|
171 |
|
172 |
|
173 |
# File uploader for new essays to be graded (DOCX)
|
174 |
-
|
175 |
-
new_file =
|
176 |
# Grading button
|
177 |
if st.button("Grade Proposal"):
|
178 |
if new_file:
|
|
|
82 |
file_path = "data/capy_proposal.pdf"
|
83 |
capy_proposal = read_pdf(file_path)
|
84 |
|
85 |
+
# file_path = "data/mamnon_proposal.pdf"
|
86 |
+
# input = read_pdf(file_path)
|
87 |
|
88 |
# Function to grade the essay using GPT-4
|
89 |
def grade_essay(input):
|
|
|
171 |
|
172 |
|
173 |
# File uploader for new essays to be graded (DOCX)
|
174 |
+
pdf_file = st.file_uploader("Upload proposal to be graded", type=["pdf"], accept_multiple_files=False)
|
175 |
+
new_file = read_pdf(pdf_file)
|
176 |
# Grading button
|
177 |
if st.button("Grade Proposal"):
|
178 |
if new_file:
|