ngcanh commited on
Commit
0519994
·
verified ·
1 Parent(s): c76fbc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -67,7 +67,7 @@ def grade_essay(essay, guided_data, topic, rubric):
67
  """
68
 
69
  # Call OpenAI's GPT-4 for grading
70
- response = client.chat.completions.create(model="gpt-4",
71
  messages=[
72
  {"role": "user", "content": prompt}
73
  ])
@@ -80,7 +80,7 @@ def export_to_csv(data):
80
 
81
  # Main function for the Streamlit app
82
  def main():
83
- st.title("olukoAI Essay Grader by Effico")
84
 
85
  # Predefined rubric for grading
86
  rubric = """
@@ -102,7 +102,7 @@ def main():
102
  example_files = st.file_uploader("Upload 10 example graded essays (DOCX)", type=["docx"], accept_multiple_files=True)
103
 
104
  # File uploader for corresponding scores (DOCX)
105
- scores_file = st.file_uploader("Upload the DOCX file containing corresponding scores", type=["docx"])
106
 
107
  # File uploader for new essays to be graded (DOCX)
108
  new_files = st.file_uploader("Upload DOCX files with essays to be graded", type=["docx"], accept_multiple_files=True)
 
67
  """
68
 
69
  # Call OpenAI's GPT-4 for grading
70
+ response = client.chat.completions.create(model="gpt-4o-mini",
71
  messages=[
72
  {"role": "user", "content": prompt}
73
  ])
 
80
 
81
  # Main function for the Streamlit app
82
  def main():
83
+ st.title("Marwuy Proposal feedback")
84
 
85
  # Predefined rubric for grading
86
  rubric = """
 
102
  example_files = st.file_uploader("Upload 10 example graded essays (DOCX)", type=["docx"], accept_multiple_files=True)
103
 
104
  # File uploader for corresponding scores (DOCX)
105
+ scores_file = st.file_uploader("Upload the DOCX file containing corresponding scores", type=["xlsx"])
106
 
107
  # File uploader for new essays to be graded (DOCX)
108
  new_files = st.file_uploader("Upload DOCX files with essays to be graded", type=["docx"], accept_multiple_files=True)