rahgadda commited on
Commit
1df34ec
·
verified ·
1 Parent(s): 1a8475b

Initial Draft

Browse files
Files changed (1) hide show
  1. chat.py +4 -4
chat.py CHANGED
@@ -26,9 +26,9 @@ def update_global_variables(ui_action_dropdown, ui_model_name,ui_weaviate_url,ui
26
  # Reset values to defaults
27
  g_ui_model_name=""
28
  g_weaviate_url=""
29
- ui_product_dropdown=gr.Dropdown.update(
30
- interactive=False
31
- )
32
  ui_download_excel = gr.File.update(
33
  visible=False,
34
  interactive=False
@@ -171,7 +171,7 @@ def update_products_lov():
171
 
172
  print("started function - update_products_lov")
173
  product_details = [d["name"] for d in g_product_details]
174
- ui_product_dropdown = gr.Dropdown.update(
175
  choices=product_details,
176
  value=product_details[0],
177
  interactive=True
 
26
  # Reset values to defaults
27
  g_ui_model_name=""
28
  g_weaviate_url=""
29
+ ui_product_dropdown=gr.Dropdown(
30
+ interactive=False
31
+ )
32
  ui_download_excel = gr.File.update(
33
  visible=False,
34
  interactive=False
 
171
 
172
  print("started function - update_products_lov")
173
  product_details = [d["name"] for d in g_product_details]
174
+ ui_product_dropdown = gr.Dropdown(
175
  choices=product_details,
176
  value=product_details[0],
177
  interactive=True