Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
190 |
|
191 |
|
192 |
if __name__ == '__main__':
|
193 |
-
|
|
|
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()
|