Skip to content

Commit

Permalink
Update WebSearch_tab.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rmusser01 committed Jan 2, 2025
1 parent 1b1ef59 commit b6936b2
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions App_Function_Libraries/Gradio_UI/WebSearch_tab.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def create_websearch_tab():

# Status displays
with gr.Row():
search_btn = gr.Button("Search", variant="primary")
status_display = gr.Markdown(
value="Ready",
label="Status",
Expand All @@ -78,19 +79,21 @@ def create_websearch_tab():
visible=True
)

search_btn = gr.Button("Search", variant="primary")

# Results review section
with gr.Column(visible=False) as review_column:
gr.Markdown("### Review Search Results")
results_review = gr.Dataframe(
headers=["Select", "Title", "URL", "Content Preview"],
datatype=["bool", "str", "str", "str"],
label="Search Results",
interactive=True
)
confirm_selection_btn = gr.Button("Generate Answer from Selected Results")

with gr.Row():
# Results review section
with gr.Column(visible=False) as review_column:
gr.Markdown("### Review Search Results")
results_review = gr.Dataframe(
headers=["Select", "Title", "URL", "Content Preview"],
datatype=["bool", "str", "str", "str"],
label="Search Results",
interactive=True
)
confirm_selection_btn = gr.Button("Generate Answer from Selected Results")

with gr.Row():
# Final output section
with gr.Column(visible=False) as output_column:
answer_output = gr.Markdown(label="Answer")
Expand Down

0 comments on commit b6936b2

Please sign in to comment.