Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1449,13 +1449,18 @@ def create_interface():
|
|
1449 |
"Your profile summary will appear here after saving.",
|
1450 |
label="Profile Summary"
|
1451 |
)
|
|
|
1452 |
|
1453 |
-
def save_profile_and_update(
|
1454 |
-
|
1455 |
-
|
1456 |
-
|
1457 |
try:
|
1458 |
-
summary = profile_manager.save_profile(
|
|
|
|
|
|
|
|
|
1459 |
new_status = current_tab_status.copy()
|
1460 |
new_status[3] = True
|
1461 |
return (
|
@@ -1479,7 +1484,7 @@ def create_interface():
|
|
1479 |
inputs=[
|
1480 |
name, age, interests, transcript_data, learning_output,
|
1481 |
movie, movie_reason, show, show_reason,
|
1482 |
-
book, book_reason, character, character_reason,
|
1483 |
tab_completed
|
1484 |
],
|
1485 |
outputs=[output_summary, tab_completed, step4, step5, nav_message]
|
@@ -1601,4 +1606,3 @@ app = create_interface()
|
|
1601 |
|
1602 |
if __name__ == "__main__":
|
1603 |
app.launch()
|
1604 |
-
|
|
|
1449 |
"Your profile summary will appear here after saving.",
|
1450 |
label="Profile Summary"
|
1451 |
)
|
1452 |
+
blog = gr.Textbox(label="Personal Blog", visible=False) # Added blog component
|
1453 |
|
1454 |
+
def save_profile_and_update(name, age, interests, transcript_data, learning_style,
|
1455 |
+
movie, movie_reason, show, show_reason,
|
1456 |
+
book, book_reason, character, character_reason, blog,
|
1457 |
+
current_tab_status):
|
1458 |
try:
|
1459 |
+
summary = profile_manager.save_profile(
|
1460 |
+
name, age, interests, transcript_data, learning_style,
|
1461 |
+
movie, movie_reason, show, show_reason,
|
1462 |
+
book, book_reason, character, character_reason, blog
|
1463 |
+
)
|
1464 |
new_status = current_tab_status.copy()
|
1465 |
new_status[3] = True
|
1466 |
return (
|
|
|
1484 |
inputs=[
|
1485 |
name, age, interests, transcript_data, learning_output,
|
1486 |
movie, movie_reason, show, show_reason,
|
1487 |
+
book, book_reason, character, character_reason, blog,
|
1488 |
tab_completed
|
1489 |
],
|
1490 |
outputs=[output_summary, tab_completed, step4, step5, nav_message]
|
|
|
1606 |
|
1607 |
if __name__ == "__main__":
|
1608 |
app.launch()
|
|