Mel Seto commited on
Commit
b7f7335
·
1 Parent(s): 9f628a1

delete extra cache

Browse files
Files changed (1) hide show
  1. src/app.py +0 -2
src/app.py CHANGED
@@ -43,7 +43,6 @@ def generate_idiom_mock():
43
  # Global cache for repeated situations
44
  EXAMPLE_CACHE = {}
45
 
46
- EXAMPLE_CACHE = {}
47
 
48
  def generate_idiom(situation: str, max_attempts: int = 3):
49
  """
@@ -51,7 +50,6 @@ def generate_idiom(situation: str, max_attempts: int = 3):
51
 
52
  Uses verify_idiom_exists() to confirm idiom validity.
53
  """
54
- # 1️⃣ Check cache
55
  if situation in EXAMPLE_CACHE:
56
  return EXAMPLE_CACHE[situation]
57
 
 
43
  # Global cache for repeated situations
44
  EXAMPLE_CACHE = {}
45
 
 
46
 
47
  def generate_idiom(situation: str, max_attempts: int = 3):
48
  """
 
50
 
51
  Uses verify_idiom_exists() to confirm idiom validity.
52
  """
 
53
  if situation in EXAMPLE_CACHE:
54
  return EXAMPLE_CACHE[situation]
55