Spaces:
Sleeping
Sleeping
corrected the backslash in the debug information
Browse files
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 |
-
|
| 35 |
-
|
|
|
|
|
|
|
| 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')
|