Muhammad Waqas commited on
Commit
bcf5c7a
·
1 Parent(s): 346f789

Added: Generate image to video

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -81,15 +81,13 @@ def generate_image():
81
  # Extract the token from the request headers
82
  token = request.headers.get('Authorization')
83
 
84
- # token = "Bearer JDJiJDEyJDgwbUJwQTFrQ0JYdS9lR2R4ZEZWdmV3WS9VTmlCeHNtc2txbnBITjR4Qm96ZmFnVUkvNDlh"
85
-
86
  if token is None:
87
  return jsonify({'error': 'No token provided'}), 400
88
  if token.startswith("Bearer "):
89
  token = token.split(" ")[1]
90
 
91
  # Base64 decode the encoded token
92
- token = base64.b64decode(token).decode("utf-8")
93
 
94
  if 'text_prompt' not in data:
95
  return jsonify({'error': 'No text prompt provided'}), 400
 
81
  # Extract the token from the request headers
82
  token = request.headers.get('Authorization')
83
 
 
 
84
  if token is None:
85
  return jsonify({'error': 'No token provided'}), 400
86
  if token.startswith("Bearer "):
87
  token = token.split(" ")[1]
88
 
89
  # Base64 decode the encoded token
90
+ # token = base64.b64decode(token).decode("utf-8")
91
 
92
  if 'text_prompt' not in data:
93
  return jsonify({'error': 'No text prompt provided'}), 400