updates
Browse files
main.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
from fastapi import FastAPI
|
2 |
from fastapi.staticfiles import StaticFiles
|
3 |
from fastapi.responses import FileResponse
|
4 |
|
@@ -69,9 +69,9 @@ def generate_image(prompt, model):
|
|
69 |
return {"response": filename}
|
70 |
|
71 |
@app.post("/verify")
|
72 |
-
def verify_image(
|
73 |
logging.warning("in verify")
|
74 |
-
|
75 |
|
76 |
logging.warning('form')
|
77 |
logging.warning(form)
|
|
|
1 |
+
from fastapi import FastAPI, UploadFile
|
2 |
from fastapi.staticfiles import StaticFiles
|
3 |
from fastapi.responses import FileResponse
|
4 |
|
|
|
69 |
return {"response": filename}
|
70 |
|
71 |
@app.post("/verify")
|
72 |
+
def verify_image(file: UploadFile):
|
73 |
logging.warning("in verify")
|
74 |
+
logging.warning(file.filename)
|
75 |
|
76 |
logging.warning('form')
|
77 |
logging.warning(form)
|