Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -93,6 +93,12 @@ def call_real_agent(query: str, session_id: str = "mobile") -> dict:
|
|
| 93 |
"""Llama a run_agent() del agent_orchestrator directamente."""
|
| 94 |
try:
|
| 95 |
load_agent()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
from modules.agent_orchestrator import run_agent
|
| 97 |
start = time.time()
|
| 98 |
response = run_agent(
|
|
|
|
| 93 |
"""Llama a run_agent() del agent_orchestrator directamente."""
|
| 94 |
try:
|
| 95 |
load_agent()
|
| 96 |
+
# Invalidar cache para forzar datos frescos del bucket
|
| 97 |
+
try:
|
| 98 |
+
from modules.semantic_cache import invalidate_cache
|
| 99 |
+
invalidate_cache()
|
| 100 |
+
except Exception:
|
| 101 |
+
pass
|
| 102 |
from modules.agent_orchestrator import run_agent
|
| 103 |
start = time.time()
|
| 104 |
response = run_agent(
|