Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -10,8 +10,10 @@ app = FastAPI()
|
|
10 |
@app.post("/process_uploaded_document")
|
11 |
async def process_document_base64(request: Request,background_tasks: BackgroundTasks):
|
12 |
request_data = await request.json()
|
13 |
-
print(request_data.get('filename'))
|
14 |
file_name = request_data.get('filename').split('/')[-5:]
|
|
|
|
|
15 |
user_id = request_data.get('user_id')
|
16 |
email = request_data.get('email')
|
17 |
# attachment_extension = request_data.get('attachment_extension')
|
|
|
10 |
@app.post("/process_uploaded_document")
|
11 |
async def process_document_base64(request: Request,background_tasks: BackgroundTasks):
|
12 |
request_data = await request.json()
|
13 |
+
# print(request_data.get('filename'))
|
14 |
file_name = request_data.get('filename').split('/')[-5:]
|
15 |
+
print("printing filename")
|
16 |
+
print(file_name)
|
17 |
user_id = request_data.get('user_id')
|
18 |
email = request_data.get('email')
|
19 |
# attachment_extension = request_data.get('attachment_extension')
|