Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -278,11 +278,6 @@ CUSTOM_CSS = """
|
|
| 278 |
background-clip: content-box;
|
| 279 |
}
|
| 280 |
*::-webkit-scrollbar-thumb:hover { background-color: #9fa3c7; }
|
| 281 |
-
|
| 282 |
-
.gradio-container { height: 100vh !important; max-height: 100vh !important; }
|
| 283 |
-
#main-row { height: calc(100vh - 130px); }
|
| 284 |
-
#chat-col { height: 100%; }
|
| 285 |
-
#side-col { height: 100%; overflow-y: auto; }
|
| 286 |
"""
|
| 287 |
|
| 288 |
# ---------------------------------------------------------------------------
|
|
@@ -303,13 +298,13 @@ with gr.Blocks(title="Chatterbox", theme=gr.themes.Soft(), css=CUSTOM_CSS, fill_
|
|
| 303 |
"Providers*), затем перезапустите Space."
|
| 304 |
)
|
| 305 |
|
| 306 |
-
with gr.Row(
|
| 307 |
-
with gr.Column(scale=3
|
| 308 |
chatbot = gr.Chatbot(
|
| 309 |
type="messages",
|
| 310 |
show_label=False,
|
| 311 |
show_copy_button=True,
|
| 312 |
-
|
| 313 |
)
|
| 314 |
msg = gr.Textbox(
|
| 315 |
placeholder="Опишите, что построить, например: «сделай лендинг с формой подписки»",
|
|
@@ -320,7 +315,7 @@ with gr.Blocks(title="Chatterbox", theme=gr.themes.Soft(), css=CUSTOM_CSS, fill_
|
|
| 320 |
send_btn = gr.Button("Отправить", variant="primary")
|
| 321 |
clear_btn = gr.Button("Очистить")
|
| 322 |
|
| 323 |
-
with gr.Column(scale=2
|
| 324 |
with gr.Tab("📄 Файлы"):
|
| 325 |
files_out = gr.File(
|
| 326 |
label="Сгенерированные файлы (несколько — упаковываются в .zip)",
|
|
|
|
| 278 |
background-clip: content-box;
|
| 279 |
}
|
| 280 |
*::-webkit-scrollbar-thumb:hover { background-color: #9fa3c7; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 281 |
"""
|
| 282 |
|
| 283 |
# ---------------------------------------------------------------------------
|
|
|
|
| 298 |
"Providers*), затем перезапустите Space."
|
| 299 |
)
|
| 300 |
|
| 301 |
+
with gr.Row(equal_height=False):
|
| 302 |
+
with gr.Column(scale=3):
|
| 303 |
chatbot = gr.Chatbot(
|
| 304 |
type="messages",
|
| 305 |
show_label=False,
|
| 306 |
show_copy_button=True,
|
| 307 |
+
scale=1,
|
| 308 |
)
|
| 309 |
msg = gr.Textbox(
|
| 310 |
placeholder="Опишите, что построить, например: «сделай лендинг с формой подписки»",
|
|
|
|
| 315 |
send_btn = gr.Button("Отправить", variant="primary")
|
| 316 |
clear_btn = gr.Button("Очистить")
|
| 317 |
|
| 318 |
+
with gr.Column(scale=2):
|
| 319 |
with gr.Tab("📄 Файлы"):
|
| 320 |
files_out = gr.File(
|
| 321 |
label="Сгенерированные файлы (несколько — упаковываются в .zip)",
|