YchKhan commited on
Commit
aa834c5
1 Parent(s): b8b708a

Update excel_chat.py

Browse files
Files changed (1) hide show
  1. excel_chat.py +2 -2
excel_chat.py CHANGED
@@ -53,6 +53,6 @@ def chat_with_mistral(source_cols, dest_col, prompt, tdoc_name, excel_file, url)
53
  def get_columns(file):
54
  if file is not None:
55
  df = pd.read_excel(file)
56
- return gr.update(choices=list(df.columns)), gr.update(choices=list(df.columns)), gr.update(choices=list(df.columns)), df.head(5)
57
  else:
58
- return gr.update(choices=[]), gr.update(choices=[]), gr.update(choices=[]), pd.DataFrame()
 
53
  def get_columns(file):
54
  if file is not None:
55
  df = pd.read_excel(file)
56
+ return gr.update(choices=list(df.columns)), gr.update(choices=list(df.columns)), gr.update(choices=list(df.columns)), gr.update(choices=list(df.columns)), df.head(5)
57
  else:
58
+ return gr.update(choices=[]), gr.update(choices=[]), gr.update(choices=[]), gr.update(choices=[]), pd.DataFrame()