fix: minor fix

This commit is contained in:
Tadashi
2025-01-03 22:22:55 +07:00
parent 55a440ff91
commit 33f482babb
2 changed files with 27 additions and 22 deletions

View File

@@ -4,7 +4,7 @@ An open-source tool for chatting with your documents. Built with both end users
developers in mind.
[Source Code](https://github.com/Cinnamon/kotaemon) |
[Visit our HF Space](https://huggingface.co/spaces/cin-model/kotaemon-demo)
[HF Space](https://huggingface.co/spaces/cin-model/kotaemon-demo)
[User Guide](https://cinnamon.github.io/kotaemon/) |
[Developer Guide](https://cinnamon.github.io/kotaemon/development/) |

View File

@@ -510,6 +510,10 @@ class ChatPage(BasePage):
self.state_chat,
]
+ self._indices_input,
).then(
fn=None,
inputs=None,
js=chat_input_focus_js,
)
if not KH_DEMO_MODE:
@@ -660,27 +664,28 @@ class ChatPage(BasePage):
fn=None, inputs=None, outputs=None, js=chat_input_focus_js
)
# evidence display on message selection
self.chat_panel.chatbot.select(
self.message_selected,
inputs=[
self.state_retrieval_history,
self.state_plot_history,
],
outputs=[
self.info_panel,
self.state_plot_panel,
],
).then(
fn=self._json_to_plot,
inputs=self.state_plot_panel,
outputs=self.plot_panel,
).then(
fn=lambda: True,
inputs=None,
outputs=[self._preview_links],
js=pdfview_js,
)
if not KH_DEMO_MODE:
# evidence display on message selection
self.chat_panel.chatbot.select(
self.message_selected,
inputs=[
self.state_retrieval_history,
self.state_plot_history,
],
outputs=[
self.info_panel,
self.state_plot_panel,
],
).then(
fn=self._json_to_plot,
inputs=self.state_plot_panel,
outputs=self.plot_panel,
).then(
fn=lambda: True,
inputs=None,
outputs=[self._preview_links],
js=pdfview_js,
)
self.chat_control.cb_is_public.change(
self.on_set_public_conversation,