Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -188,10 +188,10 @@ class InvoiceProcessingApp:
|
|
| 188 |
uploaded_paths = []
|
| 189 |
|
| 190 |
if uploaded_invoices:
|
| 191 |
-
os.makedirs("
|
| 192 |
|
| 193 |
for file in uploaded_invoices:
|
| 194 |
-
save_path = os.path.join("
|
| 195 |
print(save_path)
|
| 196 |
|
| 197 |
with open(save_path, "wb") as f:
|
|
|
|
| 188 |
uploaded_paths = []
|
| 189 |
|
| 190 |
if uploaded_invoices:
|
| 191 |
+
os.makedirs("/tmp/invoices", exist_ok=True)
|
| 192 |
|
| 193 |
for file in uploaded_invoices:
|
| 194 |
+
save_path = os.path.join("/tmp/invoices", file.name)
|
| 195 |
print(save_path)
|
| 196 |
|
| 197 |
with open(save_path, "wb") as f:
|