zliang commited on
Commit
8cca4c4
1 Parent(s): 0a3dfc9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -5,7 +5,7 @@ import sys
5
  import uvicorn
6
  from imagekitio import ImageKit
7
  from imagekitio.models.ListAndSearchFileRequestOptions import ListAndSearchFileRequestOptions
8
- from imaggekitio.models.UploadFileRequestOptions import UploadFileRequestOptions
9
  from fastapi.middleware.cors import CORSMiddleware
10
 
11
  import base64
@@ -42,9 +42,6 @@ def read_root():
42
  }
43
 
44
 
45
- class ImageUploadRequest(BaseModel):
46
- url: str
47
- metadata: dict # or a more specific type depending on your needs
48
 
49
  @app.get("/image_upload")
50
  def upload_image(url,title):
 
5
  import uvicorn
6
  from imagekitio import ImageKit
7
  from imagekitio.models.ListAndSearchFileRequestOptions import ListAndSearchFileRequestOptions
8
+ from imagekitio.models.UploadFileRequestOptions import UploadFileRequestOptions
9
  from fastapi.middleware.cors import CORSMiddleware
10
 
11
  import base64
 
42
  }
43
 
44
 
 
 
 
45
 
46
  @app.get("/image_upload")
47
  def upload_image(url,title):