gosign commited on
Commit
60f7312
·
verified ·
1 Parent(s): c214da7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -93,9 +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
- token = "Bearer JDJiJDEyJDgwbUJwQTFrQ0JYdS9lR2R4ZEZWdmV3WS9VTmlCeHNtc2txbnBITjR4Qm96ZmFnVUkvNDlh"
99
 
100
  if token is None:
101
  return jsonify({'error': 'No token provided'}), 400
@@ -112,7 +112,7 @@ def generate_image():
112
 
113
  # Get the path to the current file's directory
114
  current_dir = os.path.dirname(os.path.abspath(__file__))
115
- file_path = os.path.join(current_dir, 'workflow_api.json')
116
 
117
  with open(file_path, 'r', encoding='utf-8') as file:
118
  workflow_jsondata = file.read()
 
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
 
100
  if token is None:
101
  return jsonify({'error': 'No token provided'}), 400
 
112
 
113
  # Get the path to the current file's directory
114
  current_dir = os.path.dirname(os.path.abspath(__file__))
115
+ file_path = os.path.join(current_dir, 'workflows/deliberateforinvoke_workflow_api.json')
116
 
117
  with open(file_path, 'r', encoding='utf-8') as file:
118
  workflow_jsondata = file.read()