rahgadda commited on
Commit
818a87e
·
verified ·
1 Parent(s): aeaa224

Initial Draft

Browse files
Files changed (1) hide show
  1. chat.py +2 -2
chat.py CHANGED
@@ -33,7 +33,7 @@ def update_global_variables(ui_action_dropdown, ui_model_name,ui_weaviate_url,ui
33
  visible=False,
34
  interactive=False
35
  )
36
- ui_upload_excel = gr.UploadButton.update(
37
  visible=False
38
  )
39
  ui_chatbot.clear()
@@ -67,7 +67,7 @@ def update_global_variables(ui_action_dropdown, ui_model_name,ui_weaviate_url,ui
67
 
68
  # If Action = Query, Enable ui_download_excel
69
  if ui_action_dropdown == "Query":
70
- ui_upload_excel = gr.UploadButton.update(
71
  visible=True,
72
  interactive=True
73
  )
 
33
  visible=False,
34
  interactive=False
35
  )
36
+ ui_upload_excel = gr.UploadButton(
37
  visible=False
38
  )
39
  ui_chatbot.clear()
 
67
 
68
  # If Action = Query, Enable ui_download_excel
69
  if ui_action_dropdown == "Query":
70
+ ui_upload_excel = gr.UploadButton(
71
  visible=True,
72
  interactive=True
73
  )