Setup app data dir (#32)
* setup local data dir * update readme * update chat panel * update help page
This commit is contained in:
@@ -10,8 +10,8 @@ class ChatPanel(BasePage):
|
||||
def on_building_ui(self):
|
||||
self.chatbot = gr.Chatbot(
|
||||
label="Kotaemon",
|
||||
# placeholder="This is the beginning of a new conversation.",
|
||||
show_label=True,
|
||||
placeholder="This is the beginning of a new conversation.",
|
||||
show_label=False,
|
||||
elem_id="main-chat-bot",
|
||||
show_copy_button=True,
|
||||
likeable=True,
|
||||
|
@@ -6,9 +6,13 @@ import gradio as gr
|
||||
class HelpPage:
|
||||
def __init__(self, app):
|
||||
self._app = app
|
||||
self.dir_md = Path(__file__).parent.parent / "assets" / "md"
|
||||
self.md_dir = Path(__file__).parent.parent / "assets" / "md"
|
||||
self.doc_dir = Path(__file__).parents[4] / "docs"
|
||||
|
||||
with gr.Accordion("About"):
|
||||
with (self.md_dir / "about.md").open(encoding="utf-8") as fi:
|
||||
gr.Markdown(fi.read())
|
||||
|
||||
with gr.Accordion("User Guide"):
|
||||
with (self.doc_dir / "usage.md").open(encoding="utf-8") as fi:
|
||||
gr.Markdown(fi.read())
|
||||
@@ -17,5 +21,5 @@ class HelpPage:
|
||||
gr.Markdown(self.get_changelogs())
|
||||
|
||||
def get_changelogs(self):
|
||||
with (self.dir_md / "changelogs.md").open(encoding="utf-8") as fi:
|
||||
with (self.md_dir / "changelogs.md").open(encoding="utf-8") as fi:
|
||||
return fi.read()
|
||||
|
Reference in New Issue
Block a user