Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -321,30 +321,23 @@ with gr.Blocks() as demo:
|
|
321 |
personalize_messages_with_yield,
|
322 |
inputs=[output_text_gpt4o, output_text_gigachat_pro, output_text_gigachat_lite, output_text_gigachat_plus] + selections,
|
323 |
outputs=[
|
324 |
-
gr.
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
gr.
|
329 |
-
personalized_output_text_gpt4o := gr.Textbox(label="Персонализированное сообщение GPT-4o", lines=6, interactive=True),
|
330 |
-
gr.Button("Сохранить в базу")
|
331 |
-
]),
|
332 |
-
gr.Column([
|
333 |
-
personalized_output_text_gigachat_pro := gr.Textbox(label="Персонализированное сообщение GigaChat-Pro", lines=6, interactive=True),
|
334 |
-
gr.Button("Сохранить в базу")
|
335 |
-
]),
|
336 |
-
gr.Column([
|
337 |
-
personalized_output_text_gigachat_lite := gr.Textbox(label="Персонализированное сообщение GigaChat-Lite", lines=6, interactive=True),
|
338 |
-
gr.Button("Сохранить в базу")
|
339 |
-
]),
|
340 |
-
gr.Column([
|
341 |
-
personalized_output_text_gigachat_plus := gr.Textbox(label="Персонализированное сообщение GigaChat-Lite+", lines=6, interactive=True),
|
342 |
-
gr.Button("Сохранить в базу")
|
343 |
-
])
|
344 |
]
|
345 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
346 |
|
347 |
-
|
348 |
# Использование сохраненных переменных в следующем блоке
|
349 |
with gr.Row():
|
350 |
check_errors_btn = gr.Button("3. Проверить текст (нажимать только после кнопки 2)", elem_id="check_errors_button")
|
|
|
321 |
personalize_messages_with_yield,
|
322 |
inputs=[output_text_gpt4o, output_text_gigachat_pro, output_text_gigachat_lite, output_text_gigachat_plus] + selections,
|
323 |
outputs=[
|
324 |
+
gr.Textbox(label="Промпт для персонализации", lines=6, interactive=True),
|
325 |
+
personalized_output_text_gpt4o := gr.Textbox(label="Персонализированное сообщение GPT-4o", lines=6, interactive=True),
|
326 |
+
personalized_output_text_gigachat_pro := gr.Textbox(label="Персонализированное сообщение GigaChat-Pro", lines=6, interactive=True),
|
327 |
+
personalized_output_text_gigachat_lite := gr.Textbox(label="Персонализированное сообщение GigaChat-Lite", lines=6, interactive=True),
|
328 |
+
personalized_output_text_gigachat_plus := gr.Textbox(label="Персонализированное сообщение GigaChat-Lite+", lines=6, interactive=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
329 |
]
|
330 |
)
|
331 |
+
|
332 |
+
# Отдельная строка для кнопок
|
333 |
+
with gr.Row():
|
334 |
+
gr.Button("", visible=False, style="width:100%; height:50px;")
|
335 |
+
gr.Button("👍", style="width:100%; height:50px;")
|
336 |
+
gr.Button("👍", style="width:100%; height:50px;")
|
337 |
+
gr.Button("👍", style="width:100%; height:50px;")
|
338 |
+
gr.Button("👍", style="width:100%; height:50px;")
|
339 |
+
|
340 |
|
|
|
341 |
# Использование сохраненных переменных в следующем блоке
|
342 |
with gr.Row():
|
343 |
check_errors_btn = gr.Button("3. Проверить текст (нажимать только после кнопки 2)", elem_id="check_errors_button")
|