Spaces:
Sleeping
Sleeping
williamagyapong
commited on
Update utility.py
Browse files- utility.py +3 -2
utility.py
CHANGED
@@ -284,8 +284,9 @@ def read_datalake(user_phone, user_question):
|
|
284 |
sales_df = pd.DataFrame(sales_list)
|
285 |
# return f"{inventory_df} \n\n {sales_df}"
|
286 |
|
287 |
-
lake = SmartDatalake([inventory_df, sales_df], config={"llm": llm, "custom_whitelisted_dependencies":["ast"], "response_parser": FlaskResponse, "enable_cache": False, "save_logs": False})
|
288 |
-
response = lake.chat(user_question)
|
|
|
289 |
|
290 |
return response
|
291 |
|
|
|
284 |
sales_df = pd.DataFrame(sales_list)
|
285 |
# return f"{inventory_df} \n\n {sales_df}"
|
286 |
|
287 |
+
# lake = SmartDatalake([inventory_df, sales_df], config={"llm": llm, "custom_whitelisted_dependencies":["ast"], "response_parser": FlaskResponse, "enable_cache": False, "save_logs": False})
|
288 |
+
# response = lake.chat(user_question)
|
289 |
+
response = inventory_df
|
290 |
|
291 |
return response
|
292 |
|