Skip to content

Commit

Permalink
pull main
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrotsmnrd committed Feb 4, 2024
2 parents 200afca + c343820 commit c4c36b5
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies = [
"httpx-sse",
"importlib_metadata>=4.6; python_version<'3.10'",
"packaging",
"panel>=1.3.6,<1.4",
"panel==1.3.8",
"pydantic>=2",
"pydantic-core",
"pydantic-settings>=2",
Expand Down
26 changes: 23 additions & 3 deletions ragna/deploy/_ui/central_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def chat_interface(self):
if self.current_chat is None:
return

chat_interface = RagnaChatInterface(
return RagnaChatInterface(
*[
RagnaChatMessage(
message["content"],
Expand Down Expand Up @@ -423,10 +423,30 @@ def chat_interface(self):
# css_classes is forced to chat-interface-input-widget by Panel
)
],
card_params=dict(
stylesheets=ui.stylesheets(
(":host", {"border": "none !important"}),
(
".chat-feed-log",
{
"padding-right": "18%",
"margin-left": "18%",
"padding-top": "25px !important",
},
),
(
".chat-interface-input-container",
{
"margin-left": "19%",
"margin-right": "20%",
"margin-bottom": "20px",
},
),
)
),
show_activity_dot=False,
)

return chat_interface

@pn.depends("current_chat")
def header(self):
if self.current_chat is None:
Expand Down
2 changes: 1 addition & 1 deletion requirements-docker.lock
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ pandas==2.1.4
# via
# bokeh
# panel
panel==1.3.6
panel==1.3.8
# via Ragna (pyproject.toml)
param==2.0.1
# via
Expand Down

0 comments on commit c4c36b5

Please sign in to comment.