Spaces:
Sleeping
Sleeping
Update kig_core/graph_operations.py
Browse files
kig_core/graph_operations.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
import re
|
| 2 |
import logging
|
|
|
|
| 3 |
from typing import List, Dict, Any, Optional, Tuple
|
| 4 |
from random import sample, shuffle
|
| 5 |
|
|
@@ -114,6 +115,7 @@ def generate_cypher_guided(question: str, plan_step: int) -> str:
|
|
| 114 |
|
| 115 |
except Exception as e:
|
| 116 |
logger.error(f"Error during guided cypher generation: {e}", exc_info=True)
|
|
|
|
| 117 |
return "" # Return empty on error
|
| 118 |
|
| 119 |
|
|
|
|
| 1 |
import re
|
| 2 |
import logging
|
| 3 |
+
import time
|
| 4 |
from typing import List, Dict, Any, Optional, Tuple
|
| 5 |
from random import sample, shuffle
|
| 6 |
|
|
|
|
| 115 |
|
| 116 |
except Exception as e:
|
| 117 |
logger.error(f"Error during guided cypher generation: {e}", exc_info=True)
|
| 118 |
+
time.sleep(60)
|
| 119 |
return "" # Return empty on error
|
| 120 |
|
| 121 |
|