Spaces:
Sleeping
Sleeping
Update excel_chat.py
Browse files- 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)), df.head(5)
|
57 |
else:
|
58 |
-
return 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)), df.head(5)
|
57 |
else:
|
58 |
+
return gr.update(choices=[]), gr.update(choices=[]), gr.update(choices=[]), pd.DataFrame()
|