blank image issue on multiple req
Browse files- controller.py +7 -7
controller.py
CHANGED
@@ -151,13 +151,13 @@ def groq_chat(csv_url: str, question: str):
|
|
151 |
|
152 |
try:
|
153 |
# Delete cache file if exists
|
154 |
-
cache_db_path = "/app/cache/cache_db_0.11.db"
|
155 |
-
if os.path.exists(cache_db_path):
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
|
162 |
data = clean_data(csv_url)
|
163 |
llm = ChatGroq(model=model_name, api_key=current_api_key)
|
|
|
151 |
|
152 |
try:
|
153 |
# Delete cache file if exists
|
154 |
+
# cache_db_path = "/app/cache/cache_db_0.11.db"
|
155 |
+
# if os.path.exists(cache_db_path):
|
156 |
+
# try:
|
157 |
+
# os.remove(cache_db_path)
|
158 |
+
# print(f"Deleted cache DB file: {cache_db_path}")
|
159 |
+
# except Exception as e:
|
160 |
+
# print(f"Error deleting cache DB file: {e}")
|
161 |
|
162 |
data = clean_data(csv_url)
|
163 |
llm = ChatGroq(model=model_name, api_key=current_api_key)
|