Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
severian42 authored Jul 16, 2024
1 parent 9e8039a commit d1405fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,13 +681,13 @@ def list_folder_contents(folder_path):
default_model = settings['llm']['model']

with gr.Blocks(css=custom_css, theme=gr.themes.Base()) as demo:
gr.Markdown("# GraphRAG UI", elem_id="title")
gr.Markdown("# GraphRAG Local UI", elem_id="title")

with gr.Row(elem_id="main-container"):
with gr.Column(scale=1, elem_id="left-column"):
with gr.Tabs():
with gr.TabItem("Data Management"):
with gr.Accordion("File Operations", open=False):
with gr.Accordion("File Upload (.txt)", open=True):
file_upload = gr.File(label="Upload .txt File", file_types=[".txt"])
upload_btn = gr.Button("Upload File", variant="primary")
upload_output = gr.Textbox(label="Upload Status", visible=False)
Expand All @@ -705,7 +705,7 @@ def list_folder_contents(folder_path):
operation_status = gr.Textbox(label="Operation Status", visible=False)


with gr.Accordion("Indexing", open=False):
with gr.Accordion("Indexing", open=True):
root_dir = gr.Textbox(label="Root Directory", value=os.path.abspath("./ragtest"))
index_btn = gr.Button("Run Indexing", variant="primary")
index_output = gr.Textbox(label="Indexing Output", lines=5, visible=False)
Expand Down

0 comments on commit d1405fb

Please sign in to comment.