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

Update app.py

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