Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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}"
|
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:
|