AnatoliiG commited on
Commit
3d02f76
·
1 Parent(s): afe2a94
Files changed (2) hide show
  1. requirements.txt +1 -0
  2. ui.py +5 -3
requirements.txt CHANGED
@@ -3,3 +3,4 @@ uvicorn
3
  scipy
4
  huggingface_hub>=0.27.0
5
  gradio>=5.9.0
 
 
3
  scipy
4
  huggingface_hub>=0.27.0
5
  gradio>=5.9.0
6
+ python-multipart
ui.py CHANGED
@@ -1,4 +1,3 @@
1
- # ui.py
2
  import traceback
3
 
4
  import gradio as gr
@@ -100,6 +99,7 @@ def set_interactive(is_interactive):
100
  def create_ui():
101
  theme = gr.themes.Soft(primary_hue="blue", text_size="lg")
102
 
 
103
  with gr.Blocks(
104
  theme=theme, css=CUSTOM_CSS, title="Qwen Coder Pro", fill_height=True
105
  ) as demo:
@@ -118,13 +118,15 @@ def create_ui():
118
  )
119
  clear_btn = gr.Button("🗑️ Clear Chat", variant="secondary")
120
 
121
- with gr.Column(fill_height=True):
 
 
122
  chatbot = gr.Chatbot(
123
  label="Code Assistant",
124
  elem_id="chatbot",
125
  avatar_images=(None, "https://api.iconify.design/noto:robot.svg"),
126
  show_copy_button=True,
127
- scale=1,
128
  bubble_full_width=False,
129
  )
130
 
 
 
1
  import traceback
2
 
3
  import gradio as gr
 
99
  def create_ui():
100
  theme = gr.themes.Soft(primary_hue="blue", text_size="lg")
101
 
102
+ # fill_height=True здесь заставляет Gradio растягивать интерфейс
103
  with gr.Blocks(
104
  theme=theme, css=CUSTOM_CSS, title="Qwen Coder Pro", fill_height=True
105
  ) as demo:
 
118
  )
119
  clear_btn = gr.Button("🗑️ Clear Chat", variant="secondary")
120
 
121
+ # ИСПРАВЛЕНИЕ: Заменили fill_height=True на scale=1
122
+ # scale=1 говорит колонке "займи всё оставшееся место"
123
+ with gr.Column(scale=1):
124
  chatbot = gr.Chatbot(
125
  label="Code Assistant",
126
  elem_id="chatbot",
127
  avatar_images=(None, "https://api.iconify.design/noto:robot.svg"),
128
  show_copy_button=True,
129
+ scale=1, # Чатбот тоже растягивается внутри колонки
130
  bubble_full_width=False,
131
  )
132