heymenn commited on
Commit
7c3a33f
·
verified ·
1 Parent(s): 731c049

Update kig_core/graph_operations.py

Browse files
Files changed (1) hide show
  1. kig_core/graph_operations.py +2 -0
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