Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -323,7 +323,7 @@ async def toanime(input):
|
|
323 |
except Exception:
|
324 |
return 'Identifikasi Gagal'
|
325 |
|
326 |
-
@app.
|
327 |
async def toanime_endpoint(file: UploadFile = File(...)):
|
328 |
file_path = f"./uploads/{file.filename}"
|
329 |
try:
|
|
|
323 |
except Exception:
|
324 |
return 'Identifikasi Gagal'
|
325 |
|
326 |
+
@app.get("/akeno/toanime", response_model=SuccessResponse, responses={422: {"model": SuccessResponse}})
|
327 |
async def toanime_endpoint(file: UploadFile = File(...)):
|
328 |
file_path = f"./uploads/{file.filename}"
|
329 |
try:
|