ngcanh commited on
Commit
7f2069f
·
verified ·
1 Parent(s): ab97da4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -185,13 +185,12 @@ def main():
185
  if st.button("Grade Proposal"):
186
  if new_file:
187
  final_feedback = grade_essay(input = new_file)
188
- match = re.search(r"content='([\s\S]*)", final_feedback)
189
  result = match.group(1).strip() if match else ''
190
- result
191
  st.session_state.results.append({
192
  'Feedback': result
193
  })
194
- st.markdown(feedback)
195
 
196
 
197
  st.success("Hoàn thành chấm điểm.")
 
185
  if st.button("Grade Proposal"):
186
  if new_file:
187
  final_feedback = grade_essay(input = new_file)
188
+ match = re.findall(r"content ='(.*?)' additional_", final_feedback, re.DOTALL)
189
  result = match.group(1).strip() if match else ''
 
190
  st.session_state.results.append({
191
  'Feedback': result
192
  })
193
+ st.markdown(result)
194
 
195
 
196
  st.success("Hoàn thành chấm điểm.")