YchKhan commited on
Commit
490f770
1 Parent(s): d18f2c5

Update excel_chat.py

Browse files
Files changed (1) hide show
  1. excel_chat.py +1 -1
excel_chat.py CHANGED
@@ -54,6 +54,6 @@ def get_columns(file):
54
  columns = list(df.columns)
55
  if file is not None:
56
  df = pd.read_excel(file)
57
- return gr.update(choices=columns), gr.update(choices=columns), gr.update(choices=columns), gr.update(columns.append("")), df.head(5)
58
  else:
59
  return gr.update(choices=[]), gr.update(choices=[]), gr.update(choices=[]), gr.update(choices=[]), pd.DataFrame()
 
54
  columns = list(df.columns)
55
  if file is not None:
56
  df = pd.read_excel(file)
57
+ return gr.update(choices=columns), gr.update(choices=columns), gr.update(choices=columns), gr.update(columns + [""]), df.head(5)
58
  else:
59
  return gr.update(choices=[]), gr.update(choices=[]), gr.update(choices=[]), gr.update(choices=[]), pd.DataFrame()