Starchik commited on
Commit
611551b
·
verified ·
1 Parent(s): 88e6e98

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -9
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(elem_id="main-row"):
307
- with gr.Column(scale=3, elem_id="chat-col"):
308
  chatbot = gr.Chatbot(
309
  type="messages",
310
  show_label=False,
311
  show_copy_button=True,
312
- height="calc(100% - 110px)",
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, elem_id="side-col"):
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)",