Dannyar608 commited on
Commit
8ed0244
Β·
verified Β·
1 Parent(s): ba0cf2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -150,18 +150,13 @@ def display_saved_profile():
150
  - Name: Extracted from transcript (if available)
151
  - GPA: {gpa}
152
  - Grade Level: {grade}
153
-
154
  πŸ“š **Courses**
155
  {all_classes_df.to_markdown(index=False)}
156
-
157
  🧠 **Learning Type**
158
  Based on your answers, your learning style is: **{learning_type}**
159
-
160
  πŸ’¬ **Personal Reflections**
161
  {chr(10).join(comments)}
162
-
163
  {blog_comment}
164
-
165
  ❓ Is all this information correct?
166
  """
167
  return summary_text
@@ -186,8 +181,8 @@ with gr.Blocks() as review_block:
186
 
187
  confirm_btn.click(fn=finalize, outputs=[final_status])
188
  correct_btn.click(fn=ask_to_correct, outputs=[final_status])
189
- demo.load(fn=confirm_review, outputs=[summary_output]) # Automatically load profile on page reload
190
 
191
 
192
  if __name__ == '__main__':
193
- demo.launch()
 
150
  - Name: Extracted from transcript (if available)
151
  - GPA: {gpa}
152
  - Grade Level: {grade}
 
153
  πŸ“š **Courses**
154
  {all_classes_df.to_markdown(index=False)}
 
155
  🧠 **Learning Type**
156
  Based on your answers, your learning style is: **{learning_type}**
 
157
  πŸ’¬ **Personal Reflections**
158
  {chr(10).join(comments)}
 
159
  {blog_comment}
 
160
  ❓ Is all this information correct?
161
  """
162
  return summary_text
 
181
 
182
  confirm_btn.click(fn=finalize, outputs=[final_status])
183
  correct_btn.click(fn=ask_to_correct, outputs=[final_status])
184
+ review_block.load(fn=confirm_review, outputs=[summary_output]) # Automatically load profile on page reload
185
 
186
 
187
  if __name__ == '__main__':
188
+ review_block.launch()