Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -122,8 +122,8 @@ with gr.Blocks(theme = gr.themes.Monochrome()) as iface:
|
|
122 |
get_correct_answer_input_text = gr.Textbox(label = "Задание")
|
123 |
get_correct_answer_output_text = gr.Textbox(label = "Ответ")
|
124 |
|
125 |
-
button_gen_1.click(fn = generate_text_1, outputs = [button_gen_1_output_text, get_correct_answer_input_text])
|
126 |
-
button_get_correct_answer.click(fn = get_correct_answer, inputs = get_correct_answer_input_text, outputs = get_correct_answer_output_text)
|
127 |
|
128 |
with gr.Row():
|
129 |
|
|
|
122 |
get_correct_answer_input_text = gr.Textbox(label = "Задание")
|
123 |
get_correct_answer_output_text = gr.Textbox(label = "Ответ")
|
124 |
|
125 |
+
button_gen_1.click(fn = generate_text_1, outputs = [button_gen_1_output_text, get_correct_answer_input_text])
|
126 |
+
button_get_correct_answer.click(fn = get_correct_answer, inputs = get_correct_answer_input_text, outputs = get_correct_answer_output_text).then(lambda: gr.update(visible = True), None, get_correct_answer_output_text)
|
127 |
|
128 |
with gr.Row():
|
129 |
|