greendra commited on
Commit
b118200
·
1 Parent(s): 237cda0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -82,7 +82,7 @@ def imagebb(prompt, img, seed):
82
  # convert the sdkey from bytes to a string
83
  bbkey = bbkey.decode()
84
  bbkey = bbkey.strip()
85
- payload = {'key': bbkey, 'image': img_str, 'name': prompt, 'format': 'json', 'expiration': '3600'}
86
  r = requests.post("https://api.imgbb.com/1/upload", data=payload, proxies=proxy)
87
  r = json.loads(r.text)
88
  try:
 
82
  # convert the sdkey from bytes to a string
83
  bbkey = bbkey.decode()
84
  bbkey = bbkey.strip()
85
+ payload = {'key': bbkey, 'image': img_str, 'format': 'json', 'expiration': '3600'}
86
  r = requests.post("https://api.imgbb.com/1/upload", data=payload, proxies=proxy)
87
  r = json.loads(r.text)
88
  try: