Update app.py
Browse files
app.py
CHANGED
@@ -43,16 +43,14 @@ def read_root():
|
|
43 |
|
44 |
|
45 |
|
46 |
-
|
47 |
-
url: str
|
48 |
-
#title: str
|
49 |
|
50 |
@app.post("/image_upload")
|
51 |
-
async def upload_image(
|
52 |
try:
|
53 |
|
54 |
upload = imagekit.upload(
|
55 |
-
file=
|
56 |
file_name="image.jpg",
|
57 |
#options=options
|
58 |
)
|
|
|
43 |
|
44 |
|
45 |
|
46 |
+
|
|
|
|
|
47 |
|
48 |
@app.post("/image_upload")
|
49 |
+
async def upload_image(url):
|
50 |
try:
|
51 |
|
52 |
upload = imagekit.upload(
|
53 |
+
file=url,
|
54 |
file_name="image.jpg",
|
55 |
#options=options
|
56 |
)
|