Spaces:
Sleeping
Sleeping
williamagyapong
commited on
Update utility.py
Browse files- utility.py +1 -1
utility.py
CHANGED
@@ -282,7 +282,7 @@ def read_datalake(user_phone, user_question):
|
|
282 |
inventory_df = pd.DataFrame(inventory_list)
|
283 |
sales_df = pd.DataFrame(sales_list)
|
284 |
|
285 |
-
|
286 |
response = lake.chat(user_question)
|
287 |
|
288 |
return response
|
|
|
282 |
inventory_df = pd.DataFrame(inventory_list)
|
283 |
sales_df = pd.DataFrame(sales_list)
|
284 |
|
285 |
+
lake = SmartDatalake([inventory_df, sales_df], config={"llm": llm, "custom_whitelisted_dependencies":["ast"], "response_parser": FlaskResponse, "enable_cache": False, "save_logs": False})
|
286 |
response = lake.chat(user_question)
|
287 |
|
288 |
return response
|