Arafath10 commited on
Commit
a52e580
·
verified ·
1 Parent(s): a8fe307

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -1
main.py CHANGED
@@ -80,7 +80,10 @@ def vision(file_content):
80
 
81
 
82
  @app.post("/get_ocr_data/")
83
- async def get_data(input_file: UploadFile = File(...),user_id:int,token:str):
 
 
 
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"])