Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,8 +19,8 @@ from huggingface_hub import snapshot_download
|
|
19 |
model_dir = snapshot_download('mPLUG/DocOwl1.5-Omni', cache_dir='./')
|
20 |
|
21 |
print(os.listdir('./'))
|
22 |
-
print(os.
|
23 |
-
print(os.
|
24 |
|
25 |
logger = build_logger("gradio_web_server_local", "gradio_web_server_local.log")
|
26 |
|
@@ -403,7 +403,7 @@ if __name__ == "__main__":
|
|
403 |
parser.add_argument("--concurrency-count", type=int, default=10)
|
404 |
parser.add_argument("--model-list-mode", type=str, default="once",
|
405 |
choices=["once", "reload"])
|
406 |
-
parser.add_argument("--model-path", type=str, default="mPLUG/DocOwl1.5-Omni")
|
407 |
parser.add_argument("--device", type=str, default="cuda")
|
408 |
parser.add_argument("--load-8bit", action="store_true")
|
409 |
parser.add_argument("--load-4bit", action="store_true")
|
|
|
19 |
model_dir = snapshot_download('mPLUG/DocOwl1.5-Omni', cache_dir='./')
|
20 |
|
21 |
print(os.listdir('./'))
|
22 |
+
print(os.system('ls ./mPLUG/DocOwl1.5-Omni'))
|
23 |
+
print(os.system('ls ./model/mPLUG/DocOwl1.5-Omni'))
|
24 |
|
25 |
logger = build_logger("gradio_web_server_local", "gradio_web_server_local.log")
|
26 |
|
|
|
403 |
parser.add_argument("--concurrency-count", type=int, default=10)
|
404 |
parser.add_argument("--model-list-mode", type=str, default="once",
|
405 |
choices=["once", "reload"])
|
406 |
+
parser.add_argument("--model-path", type=str, default="./model/mPLUG/DocOwl1.5-Omni")
|
407 |
parser.add_argument("--device", type=str, default="cuda")
|
408 |
parser.add_argument("--load-8bit", action="store_true")
|
409 |
parser.add_argument("--load-4bit", action="store_true")
|