We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e406bd8 commit ddeea6dCopy full SHA for ddeea6d
Python/ToonifyImage/toonify.py
@@ -1,7 +1,10 @@
1
import requests
2
import shutil # to save image locally
3
+# taking the path of image
4
imagePath=input("Please enter the path of image to toonify : ")
5
+#taking api key
6
api_key=input("Please enter your api key")
7
+# using python request module to fetch the data
8
r = requests.post(
9
"https://api.deepai.org/api/toonify",
10
files={
@@ -10,6 +13,7 @@
13
headers={'api-key': api_key}
11
14
)
12
15
y=r.json()
16
+# fetching the path of the image formed from json which we have got
17
image_url=y['output_url']
18
filename = image_url.split("/")[-1]
19
# Open the url image
0 commit comments