Spaces:
Running
Running
Update test.py
Browse files
test.py
CHANGED
@@ -252,7 +252,7 @@ async def test_websocket(websocket: WebSocket):
|
|
252 |
filename = part.get("filename", "untitled.txt")
|
253 |
if data:
|
254 |
data_new[filename]=str(data[:10])
|
255 |
-
attachment_content = base64.urlsafe_b64decode(data
|
256 |
logging.info(filename)
|
257 |
extracted_text = await extract_text_from_attachment(filename, attachment_content)
|
258 |
logging.info(extracted_text)
|
|
|
252 |
filename = part.get("filename", "untitled.txt")
|
253 |
if data:
|
254 |
data_new[filename]=str(data[:10])
|
255 |
+
attachment_content = base64.urlsafe_b64decode(data)
|
256 |
logging.info(filename)
|
257 |
extracted_text = await extract_text_from_attachment(filename, attachment_content)
|
258 |
logging.info(extracted_text)
|