Spaces:
Running
Running
Update test.py
Browse files
test.py
CHANGED
@@ -254,7 +254,7 @@ async def test_websocket(websocket: WebSocket):
|
|
254 |
data_new[filename]=str(data[:10])
|
255 |
attachment_content = base64.urlsafe_b64decode(data.encode("UTF-8"))
|
256 |
logging.info(filename)
|
257 |
-
extracted_text = await extract_text_from_attachment(filename,
|
258 |
logging.info(extracted_text)
|
259 |
await send_chunked_data(websocket, filename, data)
|
260 |
|
|
|
254 |
data_new[filename]=str(data[:10])
|
255 |
attachment_content = base64.urlsafe_b64decode(data.encode("UTF-8"))
|
256 |
logging.info(filename)
|
257 |
+
extracted_text = await extract_text_from_attachment(filename, attachment_content)
|
258 |
logging.info(extracted_text)
|
259 |
await send_chunked_data(websocket, filename, data)
|
260 |
|