Soumik555 commited on
Commit
7c36d75
·
1 Parent(s): 6efb035

blank image issue on multiple req

Browse files
Files changed (2) hide show
  1. controller.py +1 -1
  2. intitial_q_handler.py +1 -1
controller.py CHANGED
@@ -580,7 +580,7 @@ max_cpus = os.cpu_count()
580
  print("Available CPUs:", max_cpus)
581
 
582
  # Use a process pool to run CPU-bound chart generation
583
- process_executor = ProcessPoolExecutor(max_workers=max_cpus)
584
 
585
  # --- GROQ-BASED CHART GENERATION ---
586
  def groq_chart(csv_url: str, question: str):
 
580
  print("Available CPUs:", max_cpus)
581
 
582
  # Use a process pool to run CPU-bound chart generation
583
+ process_executor = ProcessPoolExecutor(max_workers=4)
584
 
585
  # --- GROQ-BASED CHART GENERATION ---
586
  def groq_chart(csv_url: str, question: str):
intitial_q_handler.py CHANGED
@@ -4,7 +4,7 @@ INITIAL_CHAT_QUESTIONS = [
4
  ]
5
 
6
  INITIAL_CHART_QUESTIONS = [
7
- "Can you provide a bar visualization of the data?",
8
  ]
9
 
10
  def if_initial_chat_question(query: str) -> bool:
 
4
  ]
5
 
6
  INITIAL_CHART_QUESTIONS = [
7
+ "Can you provide a visualization of the data?",
8
  ]
9
 
10
  def if_initial_chat_question(query: str) -> bool: