souljoy commited on
Commit
5251069
1 Parent(s): b35f37e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -187,6 +187,11 @@ def create_image_ep(content: Text = None):
187
  "n": obj["n"],
188
  "size": obj["size"]
189
  }
 
 
 
 
 
190
  print("data = \n", data)
191
  result = requests.post(url=url,
192
  data=json.dumps(data),
 
187
  "n": obj["n"],
188
  "size": obj["size"]
189
  }
190
+ key = obj['key']
191
+ headers = {
192
+ 'Content-Type': 'application/json',
193
+ 'Authorization': 'Bearer ' + key
194
+ }
195
  print("data = \n", data)
196
  result = requests.post(url=url,
197
  data=json.dumps(data),