Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -112,14 +112,15 @@ with gr.Blocks(theme = gr.themes.Monochrome()) as iface:
|
|
112 |
|
113 |
with gr.Column():
|
114 |
button_gen_1 = gr.Button("Сгенерировать задание")
|
115 |
-
button_gen_1_output_text = gr.Textbox(label="
|
116 |
-
button_gen_1.click(fn = generate_text_1, outputs = button_gen_1_output_text)
|
117 |
|
118 |
with gr.Column():
|
119 |
button_get_correct_answer = gr.Button("Получить правильный ответ")
|
120 |
get_correct_answer_input_text = gr.Textbox(label = "Задание")
|
121 |
get_correct_answer_output_text = gr.Textbox(label = "Ответ")
|
122 |
-
|
|
|
|
|
123 |
|
124 |
with gr.Row():
|
125 |
|
|
|
112 |
|
113 |
with gr.Column():
|
114 |
button_gen_1 = gr.Button("Сгенерировать задание")
|
115 |
+
button_gen_1_output_text = gr.Textbox(label="Результат генерации", interactive = False)
|
|
|
116 |
|
117 |
with gr.Column():
|
118 |
button_get_correct_answer = gr.Button("Получить правильный ответ")
|
119 |
get_correct_answer_input_text = gr.Textbox(label = "Задание")
|
120 |
get_correct_answer_output_text = gr.Textbox(label = "Ответ")
|
121 |
+
|
122 |
+
button_gen_1.click(fn = generate_text_1, outputs = [button_gen_1_output_text, get_correct_answer_input_text])
|
123 |
+
button_get_correct_answer.click(fn = get_correct_answer, inputs = get_correct_answer_input_text, outputs = get_correct_answer_output_text)
|
124 |
|
125 |
with gr.Row():
|
126 |
|