Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,6 +9,8 @@ from PIL import Image
|
|
| 9 |
from model_utils import extract_invoice_data_from_image
|
| 10 |
from typing import List
|
| 11 |
import asyncio
|
|
|
|
|
|
|
| 12 |
|
| 13 |
os.environ["MPLCONFIGDIR"] = "/tmp/matplotlib"
|
| 14 |
os.environ["YOLO_CONFIG_DIR"] = "/tmp/ultralytics"
|
|
|
|
| 9 |
from model_utils import extract_invoice_data_from_image
|
| 10 |
from typing import List
|
| 11 |
import asyncio
|
| 12 |
+
from concurrent.futures import ThreadPoolExecutor
|
| 13 |
+
|
| 14 |
|
| 15 |
os.environ["MPLCONFIGDIR"] = "/tmp/matplotlib"
|
| 16 |
os.environ["YOLO_CONFIG_DIR"] = "/tmp/ultralytics"
|