Dannyar608 commited on
Commit
2af3bb3
·
verified ·
1 Parent(s): 7c9f1a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,4 +1,4 @@
1
- import gradio as gr
2
  import pandas as pd
3
  import PyPDF2
4
  import json
@@ -189,7 +189,7 @@ def save_profile(file, *inputs):
189
  with open("student_summary.md", "w") as f:
190
  f.write(summary["Learning_Plan"] + '\n' + summary["Style_Summary"] + '\n' + summary["Motivation"])
191
 
192
- return f"✅ Profile saved! Your learning style is: {learning_type}", *[gr.update(value="") for _ in inputs] + [gr.update(value=None) for _ in inputs]
193
 
194
  # Build Gradio UI
195
  with gr.Blocks() as demo:
 
1
+ import gradio as gr
2
  import pandas as pd
3
  import PyPDF2
4
  import json
 
189
  with open("student_summary.md", "w") as f:
190
  f.write(summary["Learning_Plan"] + '\n' + summary["Style_Summary"] + '\n' + summary["Motivation"])
191
 
192
+ return f"✅ Profile saved! Your learning style is: {learning_type}"
193
 
194
  # Build Gradio UI
195
  with gr.Blocks() as demo: