Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ style_count_map = {0: "visual", 1: "auditory", 2: "reading/writing"}
|
|
66 |
|
67 |
def learning_style_quiz(*answers):
|
68 |
scores = {'visual': 0, 'auditory': 0, 'reading/writing': 0}
|
69 |
-
|
70 |
for i, ans in enumerate(answers):
|
71 |
if i < len(learning_style_answers):
|
72 |
options = learning_style_answers[i]
|
@@ -87,7 +87,11 @@ get_to_know_categories = {
|
|
87 |
("If you could only eat one food for the rest of your life, what would it be?", []),
|
88 |
("Do you have any pets? If so, what are their names?", []),
|
89 |
("If you could travel anywhere in the world, where would you go?", []),
|
90 |
-
("What’s your favorite holiday or tradition?", [])
|
|
|
|
|
|
|
|
|
91 |
],
|
92 |
"Hopes and Dreams": [
|
93 |
("What do you want to be when you grow up?", []),
|
@@ -214,7 +218,7 @@ with gr.Blocks() as demo:
|
|
214 |
|
215 |
blog_checkbox.change(fn=lambda x: gr.update(visible=x), inputs=blog_checkbox, outputs=blog_text)
|
216 |
|
217 |
-
submit = gr.Button("
|
218 |
output = gr.Textbox(label="Status")
|
219 |
|
220 |
submit.click(fn=save_profile,
|
@@ -223,7 +227,4 @@ with gr.Blocks() as demo:
|
|
223 |
|
224 |
if __name__ == '__main__':
|
225 |
demo.launch()
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
|
|
66 |
|
67 |
def learning_style_quiz(*answers):
|
68 |
scores = {'visual': 0, 'auditory': 0, 'reading/writing': 0}
|
69 |
+
|
70 |
for i, ans in enumerate(answers):
|
71 |
if i < len(learning_style_answers):
|
72 |
options = learning_style_answers[i]
|
|
|
87 |
("If you could only eat one food for the rest of your life, what would it be?", []),
|
88 |
("Do you have any pets? If so, what are their names?", []),
|
89 |
("If you could travel anywhere in the world, where would you go?", []),
|
90 |
+
("What’s your favorite holiday or tradition?", []),
|
91 |
+
("What are some of your favorite movies or shows?", []),
|
92 |
+
("Do you have a favorite book or book series? Why?", []),
|
93 |
+
("Who is a character from a show, book, or movie that you relate to? Why?", []),
|
94 |
+
("If you could be any fictional character, who would you be and why?", [])
|
95 |
],
|
96 |
"Hopes and Dreams": [
|
97 |
("What do you want to be when you grow up?", []),
|
|
|
218 |
|
219 |
blog_checkbox.change(fn=lambda x: gr.update(visible=x), inputs=blog_checkbox, outputs=blog_text)
|
220 |
|
221 |
+
submit = gr.Button("🗕️ Save My Profile")
|
222 |
output = gr.Textbox(label="Status")
|
223 |
|
224 |
submit.click(fn=save_profile,
|
|
|
227 |
|
228 |
if __name__ == '__main__':
|
229 |
demo.launch()
|
230 |
+
|
|
|
|
|
|