ImagineAI-Real commited on
Commit
47d9e1a
·
1 Parent(s): 4cb0029

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ def anti_nsfw(image):
11
  encoded_image = image_to_base64(image)
12
  resp = requests.get(
13
  "https://4937ea62-c0b0-414f-afbc-53be1f5b0d06.id.repl.co/scan",
14
- data={"base64": encoded_image}
15
  )
16
  return resp.text
17
 
 
11
  encoded_image = image_to_base64(image)
12
  resp = requests.get(
13
  "https://4937ea62-c0b0-414f-afbc-53be1f5b0d06.id.repl.co/scan",
14
+ data={"base64": f"data:image/png;base64,{encoded_image}"}
15
  )
16
  return resp.text
17