Spaces:
Sleeping
Sleeping
static_tmp_path = tempfile.gettempdir()
Browse files
main.py
CHANGED
@@ -39,7 +39,8 @@ client = OpenAI(api_key=api_key)
|
|
39 |
|
40 |
|
41 |
# === 初始設定 ===
|
42 |
-
static_tmp_path = "/tmp"
|
|
|
43 |
os.makedirs(static_tmp_path, exist_ok=True)
|
44 |
base_url = os.getenv("SPACE_HOST") # e.g., "your-space-name.hf.space"
|
45 |
|
|
|
39 |
|
40 |
|
41 |
# === 初始設定 ===
|
42 |
+
# static_tmp_path = "/tmp"
|
43 |
+
static_tmp_path = tempfile.gettempdir()
|
44 |
os.makedirs(static_tmp_path, exist_ok=True)
|
45 |
base_url = os.getenv("SPACE_HOST") # e.g., "your-space-name.hf.space"
|
46 |
|