rename tabs for prod
Browse files- app.py +4 -4
- front/tabs/tab_drias.py +1 -1
app.py
CHANGED
@@ -363,7 +363,7 @@ def event_handling(
|
|
363 |
)
|
364 |
)
|
365 |
|
366 |
-
elif tab_name == "
|
367 |
print("chat poc - message sent")
|
368 |
# Event for textbox
|
369 |
(
|
@@ -505,7 +505,7 @@ def event_handling(
|
|
505 |
[papers_html, citations_network, papers_summary],
|
506 |
)
|
507 |
|
508 |
-
# if tab_name == "
|
509 |
# # Drias search
|
510 |
# textbox.submit(ask_vanna, [textbox], [vanna_sql_query ,vanna_table, vanna_display])
|
511 |
|
@@ -522,14 +522,14 @@ def main_ui():
|
|
522 |
|
523 |
with gr.Tabs():
|
524 |
cqa_components = cqa_tab(tab_name="ClimateQ&A")
|
525 |
-
local_cqa_components = cqa_tab(tab_name="
|
526 |
create_drias_tab(share_client=share_client, user_id=user_id)
|
527 |
|
528 |
create_about_tab()
|
529 |
|
530 |
event_handling(cqa_components, config_components, tab_name="ClimateQ&A")
|
531 |
event_handling(
|
532 |
-
local_cqa_components, config_components, tab_name="
|
533 |
)
|
534 |
|
535 |
config_event_handling([cqa_components, local_cqa_components], config_components)
|
|
|
363 |
)
|
364 |
)
|
365 |
|
366 |
+
elif tab_name == "France - Local Q&A":
|
367 |
print("chat poc - message sent")
|
368 |
# Event for textbox
|
369 |
(
|
|
|
505 |
[papers_html, citations_network, papers_summary],
|
506 |
)
|
507 |
|
508 |
+
# if tab_name == "France - Local Q&A": # Not untill results are good enough
|
509 |
# # Drias search
|
510 |
# textbox.submit(ask_vanna, [textbox], [vanna_sql_query ,vanna_table, vanna_display])
|
511 |
|
|
|
522 |
|
523 |
with gr.Tabs():
|
524 |
cqa_components = cqa_tab(tab_name="ClimateQ&A")
|
525 |
+
local_cqa_components = cqa_tab(tab_name="France - Local Q&A")
|
526 |
create_drias_tab(share_client=share_client, user_id=user_id)
|
527 |
|
528 |
create_about_tab()
|
529 |
|
530 |
event_handling(cqa_components, config_components, tab_name="ClimateQ&A")
|
531 |
event_handling(
|
532 |
+
local_cqa_components, config_components, tab_name="France - Local Q&A"
|
533 |
)
|
534 |
|
535 |
config_event_handling([cqa_components, local_cqa_components], config_components)
|
front/tabs/tab_drias.py
CHANGED
@@ -118,7 +118,7 @@ def on_table_click(evt: gr.SelectData, table_names, sql_queries, dataframes, plo
|
|
118 |
|
119 |
def create_drias_ui() -> DriasUIElements:
|
120 |
"""Create and return all UI elements for the DRIAS tab."""
|
121 |
-
with gr.Tab("
|
122 |
with gr.Accordion(label="Details") as details_accordion:
|
123 |
gr.Markdown(DRIAS_UI_TEXT)
|
124 |
|
|
|
118 |
|
119 |
def create_drias_ui() -> DriasUIElements:
|
120 |
"""Create and return all UI elements for the DRIAS tab."""
|
121 |
+
with gr.Tab("France - Talk to DRIAS", elem_id="tab-vanna", id=6) as tab:
|
122 |
with gr.Accordion(label="Details") as details_accordion:
|
123 |
gr.Markdown(DRIAS_UI_TEXT)
|
124 |
|