Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -11,7 +11,7 @@ app = FastAPI()
|
|
11 |
async def process_document_base64(request: Request,background_tasks: BackgroundTasks):
|
12 |
request_data = await request.json()
|
13 |
file_name = request_data.get('filename')
|
14 |
-
|
15 |
-
background_tasks.add_task(extract_structure_store_message,filename)
|
16 |
|
17 |
return {"status":'Processing and Updating the data to db!'}
|
|
|
11 |
async def process_document_base64(request: Request,background_tasks: BackgroundTasks):
|
12 |
request_data = await request.json()
|
13 |
file_name = request_data.get('filename')
|
14 |
+
user_id = request_data.get('user_id')
|
15 |
+
background_tasks.add_task(extract_structure_store_message,filename,user_id)
|
16 |
|
17 |
return {"status":'Processing and Updating the data to db!'}
|