Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,6 +8,7 @@ from threading import Thread
|
|
| 8 |
from pydantic import BaseModel
|
| 9 |
from typing import Optional
|
| 10 |
import io
|
|
|
|
| 11 |
|
| 12 |
import pymupdf
|
| 13 |
import docx
|
|
@@ -369,8 +370,8 @@ async def test_endpoint(
|
|
| 369 |
"file_name": None
|
| 370 |
}
|
| 371 |
|
| 372 |
-
print(message)
|
| 373 |
# Llamar a la función `simple_chat` con el mensaje
|
|
|
|
| 374 |
response = simple_chat(message)
|
| 375 |
|
| 376 |
return response
|
|
|
|
| 8 |
from pydantic import BaseModel
|
| 9 |
from typing import Optional
|
| 10 |
import io
|
| 11 |
+
from io import BytesIO
|
| 12 |
|
| 13 |
import pymupdf
|
| 14 |
import docx
|
|
|
|
| 370 |
"file_name": None
|
| 371 |
}
|
| 372 |
|
|
|
|
| 373 |
# Llamar a la función `simple_chat` con el mensaje
|
| 374 |
+
print(message)
|
| 375 |
response = simple_chat(message)
|
| 376 |
|
| 377 |
return response
|