blank image issue on multiple req
Browse files- controller.py +1 -1
- 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=
|
| 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
|
| 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:
|