Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -93,8 +93,9 @@ def generate_image():
|
|
| 93 |
data = request.json
|
| 94 |
|
| 95 |
# Extract the token from the request headers
|
| 96 |
-
token = request.headers.get('Authorization')
|
| 97 |
|
|
|
|
| 98 |
if token is None:
|
| 99 |
return jsonify({'error': 'No token provided'}), 400
|
| 100 |
if token.startswith("Bearer "):
|
|
|
|
| 93 |
data = request.json
|
| 94 |
|
| 95 |
# Extract the token from the request headers
|
| 96 |
+
# token = request.headers.get('Authorization')
|
| 97 |
|
| 98 |
+
token = "Bearer JDJiJDEyJDgwbUJwQTFrQ0JYdS9lR2R4ZEZWdmV3WS9VTmlCeHNtc2txbnBITjR4Qm96ZmFnVUkvNDlh"
|
| 99 |
if token is None:
|
| 100 |
return jsonify({'error': 'No token provided'}), 400
|
| 101 |
if token.startswith("Bearer "):
|