Spaces:
Sleeping
Sleeping
feat: 修改文件存储地址
Browse files
main.py
CHANGED
@@ -9,7 +9,7 @@ from datetime import datetime
|
|
9 |
app = FastAPI()
|
10 |
|
11 |
|
12 |
-
UPLOAD_DIRECTORY = "
|
13 |
|
14 |
# 如果目录不存在,则创建
|
15 |
if not os.path.exists(UPLOAD_DIRECTORY):
|
|
|
9 |
app = FastAPI()
|
10 |
|
11 |
|
12 |
+
UPLOAD_DIRECTORY = "/tmp/uploaded_files"
|
13 |
|
14 |
# 如果目录不存在,则创建
|
15 |
if not os.path.exists(UPLOAD_DIRECTORY):
|