Parishri07 commited on
Commit
a345046
·
verified ·
1 Parent(s): da8be8f

Update ui/layout.py

Browse files
Files changed (1) hide show
  1. ui/layout.py +5 -2
ui/layout.py CHANGED
@@ -1,5 +1,5 @@
1
  import gradio as gr
2
- from ui.navigator_tab import create_navigator_tab
3
  from ui.suggestions_tab import create_suggestions_tab
4
 
5
  def build_ui():
@@ -39,10 +39,13 @@ def build_ui():
39
 
40
  # 💡 Tabs
41
  with gr.Tabs():
42
- create_navigator_tab()
43
  create_suggestions_tab()
44
 
45
  # 🏁 Footer
46
  gr.Markdown("Made by TEAM AtoM⚡", elem_classes="centered-text")
47
 
 
 
 
48
  return demo
 
1
  import gradio as gr
2
+ from ui.navigator_tab import create_navigator_tab, load_initial_country_choices
3
  from ui.suggestions_tab import create_suggestions_tab
4
 
5
  def build_ui():
 
39
 
40
  # 💡 Tabs
41
  with gr.Tabs():
42
+ country_dropdown, = create_navigator_tab()
43
  create_suggestions_tab()
44
 
45
  # 🏁 Footer
46
  gr.Markdown("Made by TEAM AtoM⚡", elem_classes="centered-text")
47
 
48
+ # 🚀 Load country dropdown choices without default selection
49
+ demo.load(fn=load_initial_country_choices, inputs=None, outputs=country_dropdown)
50
+
51
  return demo