Spaces:
Sleeping
Sleeping
Updated text
Browse files
app.py
CHANGED
@@ -4,8 +4,8 @@ from utils import Test
|
|
4 |
|
5 |
|
6 |
|
7 |
-
title = "
|
8 |
-
description = "
|
9 |
info = "Пройдіть тест до кінця"
|
10 |
|
11 |
|
@@ -27,7 +27,7 @@ def question_interface(question_state, answer):
|
|
27 |
answer_ids = test.convert_to_answer_ids(question_state["responses"])
|
28 |
best_id = test.select_best(answer_ids)
|
29 |
radio = gr.Radio.update(choices = [], value = None)
|
30 |
-
name = test.full_names[best_id]
|
31 |
title = test.titles[best_id]
|
32 |
image_path = test.get_photos_path(best_id)
|
33 |
return None, name, radio, title, image_path
|
@@ -58,21 +58,21 @@ with gr.Blocks() as blocks:
|
|
58 |
with gr.Row():
|
59 |
with gr.Column():
|
60 |
textbox = gr.Textbox(
|
61 |
-
label="
|
62 |
-
value="Натисніть
|
63 |
interactive=False,
|
64 |
)
|
65 |
radio = gr.Radio(
|
66 |
-
label="
|
67 |
choices=[],
|
68 |
#value=default_lang,
|
69 |
#type="index",
|
70 |
interactive=True,
|
71 |
)
|
72 |
with gr.Row():
|
73 |
-
submit = gr.Button("
|
74 |
with gr.Column():
|
75 |
-
result = gr.Textbox(label="
|
76 |
resultImage = gr.Image("./emblem.png", label="Image", interactive=False, height=500)
|
77 |
gr.Markdown(info)
|
78 |
# gr.Markdown("<center>"
|
|
|
4 |
|
5 |
|
6 |
|
7 |
+
title = "Хто ти із Синтезу?"
|
8 |
+
description = "Визначте, на кого з легендарної команди Синтез при Свічках (СпС) Ви найбільше схожі"
|
9 |
info = "Пройдіть тест до кінця"
|
10 |
|
11 |
|
|
|
27 |
answer_ids = test.convert_to_answer_ids(question_state["responses"])
|
28 |
best_id = test.select_best(answer_ids)
|
29 |
radio = gr.Radio.update(choices = [], value = None)
|
30 |
+
name = f"Вітаємо, Ви {test.full_names[best_id]}!"
|
31 |
title = test.titles[best_id]
|
32 |
image_path = test.get_photos_path(best_id)
|
33 |
return None, name, radio, title, image_path
|
|
|
58 |
with gr.Row():
|
59 |
with gr.Column():
|
60 |
textbox = gr.Textbox(
|
61 |
+
label="Запитання",
|
62 |
+
value="Натисніть ВПЕРЕД для того щоб розпочати тест",
|
63 |
interactive=False,
|
64 |
)
|
65 |
radio = gr.Radio(
|
66 |
+
label="Варіанти відповіді",
|
67 |
choices=[],
|
68 |
#value=default_lang,
|
69 |
#type="index",
|
70 |
interactive=True,
|
71 |
)
|
72 |
with gr.Row():
|
73 |
+
submit = gr.Button("ВПЕРЕД", variant="primary", interactive=True)
|
74 |
with gr.Column():
|
75 |
+
result = gr.Textbox(label="Як би відповів СпС?", interactive=False)
|
76 |
resultImage = gr.Image("./emblem.png", label="Image", interactive=False, height=500)
|
77 |
gr.Markdown(info)
|
78 |
# gr.Markdown("<center>"
|