Spaces:
Sleeping
Sleeping
Update excel_chat.py
Browse files- excel_chat.py +1 -1
excel_chat.py
CHANGED
@@ -54,6 +54,6 @@ def get_columns(file):
|
|
54 |
if file is not None:
|
55 |
df = pd.read_excel(file)
|
56 |
columns = list(df.columns)
|
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()
|
|
|
54 |
if file is not None:
|
55 |
df = pd.read_excel(file)
|
56 |
columns = list(df.columns)
|
57 |
+
return gr.update(choices=columns), gr.update(choices=columns), gr.update(choices=columns), gr.update(choices=columns + [""]), df.head(5)
|
58 |
else:
|
59 |
return gr.update(choices=[]), gr.update(choices=[]), gr.update(choices=[]), gr.update(choices=[]), pd.DataFrame()
|