timeki commited on
Commit
71a7d2c
·
1 Parent(s): 95ebebe

fix tab name

Browse files
front/tabs/chat_interface.py CHANGED
@@ -42,7 +42,7 @@ Que voulez-vous apprendre ?
42
 
43
  # UI Layout Components
44
  def create_chat_interface(tab):
45
- init_prompt_message = init_prompt_poc if tab == "Beta - POC Adapt'Action" else init_prompt
46
  chatbot = gr.Chatbot(
47
  value=[ChatMessage(role="assistant", content=init_prompt_message)],
48
  type="messages",
 
42
 
43
  # UI Layout Components
44
  def create_chat_interface(tab):
45
+ init_prompt_message = init_prompt_poc if tab == "France - Local Q&A" else init_prompt
46
  chatbot = gr.Chatbot(
47
  value=[ChatMessage(role="assistant", content=init_prompt_message)],
48
  type="messages",
front/tabs/tab_examples.py CHANGED
@@ -4,7 +4,7 @@ from climateqa.sample_questions import QUESTIONS_GLOBAL, QUESTIONS_POC
4
 
5
  def create_examples_tab(tab_name):
6
  examples_hidden = gr.Textbox(visible=False, elem_id=f"examples-hidden")
7
- QUESTIONS = QUESTIONS_POC if tab_name == "Beta - POC Adapt'Action" else QUESTIONS_GLOBAL
8
  first_key = list(QUESTIONS.keys())[0]
9
  dropdown_samples = gr.Dropdown(
10
  choices=QUESTIONS.keys(),
 
4
 
5
  def create_examples_tab(tab_name):
6
  examples_hidden = gr.Textbox(visible=False, elem_id=f"examples-hidden")
7
+ QUESTIONS = QUESTIONS_POC if tab_name == "France - Local Q&A" else QUESTIONS_GLOBAL
8
  first_key = list(QUESTIONS.keys())[0]
9
  dropdown_samples = gr.Dropdown(
10
  choices=QUESTIONS.keys(),