gavinzli commited on
Commit
bef73e4
·
1 Parent(s): f5ee9cf

Update collect function to reference pickle files in cache directory

Browse files
Files changed (1) hide show
  1. app/router/mail.py +1 -1
app/router/mail.py CHANGED
@@ -21,7 +21,7 @@ def collect(email: str, request: Request):
21
  Returns:
22
  str: The generated response from the chat function.
23
  """
24
- if os.path.exists(f"{email}.pickle"):
25
  with open(f"cache/{email}.pickle", "rb") as token:
26
  credentials = pickle.load(token)
27
  else:
 
21
  Returns:
22
  str: The generated response from the chat function.
23
  """
24
+ if os.path.exists(f"cache/{email}.pickle"):
25
  with open(f"cache/{email}.pickle", "rb") as token:
26
  credentials = pickle.load(token)
27
  else: