Soumik555 commited on
Commit
60c50d7
·
1 Parent(s): a0d14fd

blank image issue on multiple req

Browse files
Files changed (1) hide show
  1. controller.py +6 -6
controller.py CHANGED
@@ -339,12 +339,12 @@ def groq_chart(csv_url: str, question: str):
339
  for attempt in range(len(groq_api_keys)):
340
  try:
341
  # Clean cache before processing
342
- cache_db_path = "/workspace/cache/cache_db_0.11.db"
343
- if os.path.exists(cache_db_path):
344
- try:
345
- os.remove(cache_db_path)
346
- except Exception as e:
347
- print(f"Cache cleanup error: {e}")
348
 
349
  data = clean_data(csv_url)
350
  with current_groq_chart_lock:
 
339
  for attempt in range(len(groq_api_keys)):
340
  try:
341
  # Clean cache before processing
342
+ # cache_db_path = "/workspace/cache/cache_db_0.11.db"
343
+ # if os.path.exists(cache_db_path):
344
+ # try:
345
+ # os.remove(cache_db_path)
346
+ # except Exception as e:
347
+ # print(f"Cache cleanup error: {e}")
348
 
349
  data = clean_data(csv_url)
350
  with current_groq_chart_lock: