SJLee-0525
commited on
Commit
·
733aedb
1
Parent(s):
137416c
[TEST] test36
Browse files- client/app.py +8 -2
client/app.py
CHANGED
|
@@ -50,14 +50,20 @@ PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
| 50 |
|
| 51 |
# docs 디렉토리 경로 (tech-stack.html 등)
|
| 52 |
DOCS_DIR = os.path.join(PROJECT_ROOT, "docs")
|
|
|
|
|
|
|
| 53 |
|
| 54 |
# 디버그: 경로 확인
|
| 55 |
print(f"[PATH DEBUG] __file__: {__file__}")
|
| 56 |
print(f"[PATH DEBUG] PROJECT_ROOT: {PROJECT_ROOT}")
|
| 57 |
print(f"[PATH DEBUG] DOCS_DIR: {DOCS_DIR}")
|
| 58 |
print(f"[PATH DEBUG] DOCS_DIR exists: {os.path.exists(DOCS_DIR)}")
|
| 59 |
-
|
| 60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
|
| 62 |
|
| 63 |
class AudioValidationApp:
|
|
|
|
| 50 |
|
| 51 |
# docs 디렉토리 경로 (tech-stack.html 등)
|
| 52 |
DOCS_DIR = os.path.join(PROJECT_ROOT, "docs")
|
| 53 |
+
IMAGES_DIR = os.path.join(PROJECT_ROOT, "images")
|
| 54 |
+
REFERENCE_AUDIO_DIR = os.path.join(PROJECT_ROOT, "reference_audio")
|
| 55 |
|
| 56 |
# 디버그: 경로 확인
|
| 57 |
print(f"[PATH DEBUG] __file__: {__file__}")
|
| 58 |
print(f"[PATH DEBUG] PROJECT_ROOT: {PROJECT_ROOT}")
|
| 59 |
print(f"[PATH DEBUG] DOCS_DIR: {DOCS_DIR}")
|
| 60 |
print(f"[PATH DEBUG] DOCS_DIR exists: {os.path.exists(DOCS_DIR)}")
|
| 61 |
+
if os.path.exists(DOCS_DIR):
|
| 62 |
+
print(f"[PATH DEBUG] DOCS_DIR contents: {os.listdir(DOCS_DIR)}")
|
| 63 |
+
|
| 64 |
+
# 환경변수로 allowed_paths 설정 (Spaces 배포용)
|
| 65 |
+
os.environ["GRADIO_ALLOWED_PATHS"] = f"{UPLOAD_DIR},{DOCS_DIR},{IMAGES_DIR},{REFERENCE_AUDIO_DIR}"
|
| 66 |
+
print(f"[PATH DEBUG] GRADIO_ALLOWED_PATHS: {os.environ['GRADIO_ALLOWED_PATHS']}")
|
| 67 |
|
| 68 |
|
| 69 |
class AudioValidationApp:
|