fruitpicker01
commited on
Commit
•
dfaf6c1
1
Parent(s):
dc5500f
Update app.py
Browse files
app.py
CHANGED
@@ -637,7 +637,14 @@ def perform_all_checks_and_show_results(personalized_message_1, personalized_mes
|
|
637 |
|
638 |
|
639 |
# Интерфейс Gradio
|
640 |
-
with gr.Blocks(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
641 |
with gr.Tabs() as tabs:
|
642 |
|
643 |
# Вкладка 1: Исходные данные
|
@@ -743,7 +750,7 @@ with gr.Blocks() as demo:
|
|
743 |
|
744 |
with gr.Row():
|
745 |
personalized_message_1 = gr.Textbox(label="Персонализированное сообщение 1", lines=5, interactive=False)
|
746 |
-
check_message_1 = gr.Textbox(label="Проверка сообщения 1", lines=5, interactive=False)
|
747 |
with gr.Column():
|
748 |
gr.HTML("<div style='display:flex; justify-content:center; width:100%;'>")
|
749 |
success_forecast_1 = gr.Plot(label="Прогноз успешности сообщения 1")
|
|
|
637 |
|
638 |
|
639 |
# Интерфейс Gradio
|
640 |
+
with gr.Blocks(css="""
|
641 |
+
#check_scroll {
|
642 |
+
max-height: 150px;
|
643 |
+
overflow-y: auto;
|
644 |
+
}
|
645 |
+
""") as demo:
|
646 |
+
# Твой интерфейс
|
647 |
+
|
648 |
with gr.Tabs() as tabs:
|
649 |
|
650 |
# Вкладка 1: Исходные данные
|
|
|
750 |
|
751 |
with gr.Row():
|
752 |
personalized_message_1 = gr.Textbox(label="Персонализированное сообщение 1", lines=5, interactive=False)
|
753 |
+
check_message_1 = gr.Textbox(label="Проверка сообщения 1", lines=5, interactive=False, elem_id="check_scroll")
|
754 |
with gr.Column():
|
755 |
gr.HTML("<div style='display:flex; justify-content:center; width:100%;'>")
|
756 |
success_forecast_1 = gr.Plot(label="Прогноз успешности сообщения 1")
|