Hugescoot commited on
Commit
ab6423a
·
1 Parent(s): 8dd83e2

corrected the backslash in the debug information

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -31,8 +31,10 @@ print("=== DETAILED DEBUG ===")
31
  key = os.getenv('OPENAI_API_KEY', '')
32
  print(f"Key length: {len(key)}")
33
  print(f"Key repr: {repr(key[:20])}...{repr(key[-10:])}") # Shows hidden chars
34
- print(f"Has newlines: {'\\n' in key}")
35
- print(f"Has spaces at end: {key != key.strip()}")
 
 
36
  print("=== END DETAILED DEBUG ===")
37
  if os.getenv('OPENAI_API_KEY'):
38
  key = os.getenv('OPENAI_API_KEY')
 
31
  key = os.getenv('OPENAI_API_KEY', '')
32
  print(f"Key length: {len(key)}")
33
  print(f"Key repr: {repr(key[:20])}...{repr(key[-10:])}") # Shows hidden chars
34
+ newline_check = '\n' in key
35
+ space_check = key != key.strip()
36
+ print(f"Has newlines: {newline_check}")
37
+ print(f"Has spaces at end: {space_check}")
38
  print("=== END DETAILED DEBUG ===")
39
  if os.getenv('OPENAI_API_KEY'):
40
  key = os.getenv('OPENAI_API_KEY')