AnatoliiG commited on
Commit
3edce53
·
1 Parent(s): 05f0041

Update components.py

Browse files
Files changed (1) hide show
  1. src/ui/components.py +12 -3
src/ui/components.py CHANGED
@@ -3,6 +3,12 @@ import os
3
  import gradio as gr
4
  import psutil
5
 
 
 
 
 
 
 
6
  from src.core.config import settings
7
  from src.ui.callbacks import bot_response, set_interactive, user_input
8
  from src.ui.styles import CSS
@@ -43,7 +49,9 @@ def create_ui():
43
  ram_total_display = gr.Label(label="System RAM", value="0%")
44
  ram_proc_display = gr.Label(label="Process Memory", value="0 MB")
45
 
46
- gr.Separator()
 
 
47
 
48
  # Настройки модели
49
  gr.Markdown("### ⚙️ Model Settings")
@@ -61,7 +69,9 @@ def create_ui():
61
  step=128,
62
  )
63
 
64
- gr.Separator()
 
 
65
  clear = gr.Button("🗑️ Clear Chat", variant="stop")
66
 
67
  # Основная область чата
@@ -72,7 +82,6 @@ def create_ui():
72
  show_label=False,
73
  bubble_full_width=False,
74
  fill_height=True,
75
- type="messages",
76
  )
77
 
78
  # Область ввода, прижатая к низу
 
3
  import gradio as gr
4
  import psutil
5
 
6
+ # if not hasattr(gr, "Separator"):
7
+ # def _gr_separator():
8
+ # return gr.HTML(
9
+ # "<div style='margin: 15px 0; border-top: 1px solid var(--border-color-primary);'></div>"
10
+ # )
11
+ # gr.Separator = lambda *args, **kwargs: _gr_separator()
12
  from src.core.config import settings
13
  from src.ui.callbacks import bot_response, set_interactive, user_input
14
  from src.ui.styles import CSS
 
49
  ram_total_display = gr.Label(label="System RAM", value="0%")
50
  ram_proc_display = gr.Label(label="Process Memory", value="0 MB")
51
 
52
+ gr.HTML(
53
+ "<div style='margin: 15px 0; border-top: 1px solid var(--border-color-primary);'></div>"
54
+ )
55
 
56
  # Настройки модели
57
  gr.Markdown("### ⚙️ Model Settings")
 
69
  step=128,
70
  )
71
 
72
+ gr.HTML(
73
+ "<div style='margin: 15px 0; border-top: 1px solid var(--border-color-primary);'></div>"
74
+ )
75
  clear = gr.Button("🗑️ Clear Chat", variant="stop")
76
 
77
  # Основная область чата
 
82
  show_label=False,
83
  bubble_full_width=False,
84
  fill_height=True,
 
85
  )
86
 
87
  # Область ввода, прижатая к низу