Update main.py
Browse files
main.py
CHANGED
@@ -80,7 +80,10 @@ def vision(file_content):
|
|
80 |
|
81 |
|
82 |
@app.post("/get_ocr_data/")
|
83 |
-
async def get_data(
|
|
|
|
|
|
|
84 |
# To decode and verify the token
|
85 |
try:
|
86 |
decoded_payload = jwt.decode(token, SECRET_KEY, algorithms=["HS256"])
|
|
|
80 |
|
81 |
|
82 |
@app.post("/get_ocr_data/")
|
83 |
+
async def get_data(user_id:int,
|
84 |
+
token:str,
|
85 |
+
input_file: UploadFile = File(...)
|
86 |
+
):
|
87 |
# To decode and verify the token
|
88 |
try:
|
89 |
decoded_payload = jwt.decode(token, SECRET_KEY, algorithms=["HS256"])
|