Dannyar608 commited on
Commit
853030c
Β·
verified Β·
1 Parent(s): 9a20088

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -195,8 +195,8 @@ def save_profile(file, *inputs):
195
  with open("student_summary.md", "w") as f:
196
  f.write(summary["Learning_Plan"] + '\n' + summary["Style_Summary"] + '\n' + summary["Motivation"])
197
 
198
- return f"βœ… Profile saved! Your learning style is: {learning_type}"
199
-
200
  except Exception as e:
201
  return f"❌ Error: {str(e)}"
202
 
 
195
  with open("student_summary.md", "w") as f:
196
  f.write(summary["Learning_Plan"] + '\n' + summary["Style_Summary"] + '\n' + summary["Motivation"])
197
 
198
+ return f"βœ… Profile saved! Your learning style is: {learning_type}", gr.update(clear=True)
199
+
200
  except Exception as e:
201
  return f"❌ Error: {str(e)}"
202