Spaces:
Running
on
Zero
Running
on
Zero
tori29umai
commited on
Commit
•
4755f10
1
Parent(s):
2bdd8a2
Update app.py
Browse files
app.py
CHANGED
@@ -13,12 +13,8 @@ DEFAULT_INI_FILE = 'settings.ini'
|
|
13 |
MODEL_FILE_EXTENSION = '.gguf'
|
14 |
|
15 |
# パスの設定
|
16 |
-
|
17 |
-
|
18 |
-
MODEL_DIR = os.path.join(os.path.dirname(BASE_PATH), "AI-NovelAssistant", "models")
|
19 |
-
else:
|
20 |
-
BASE_PATH = os.path.dirname(os.path.abspath(__file__))
|
21 |
-
MODEL_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "models")
|
22 |
|
23 |
# モデルディレクトリが存在しない場合は作成
|
24 |
if not os.path.exists("models"):
|
|
|
13 |
MODEL_FILE_EXTENSION = '.gguf'
|
14 |
|
15 |
# パスの設定
|
16 |
+
BASE_PATH = os.path.dirname(os.path.abspath(__file__))
|
17 |
+
MODEL_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "models")
|
|
|
|
|
|
|
|
|
18 |
|
19 |
# モデルディレクトリが存在しない場合は作成
|
20 |
if not os.path.exists("models"):
|