Spaces:
Runtime error
Runtime error
Update app.py
#37
by
BorderCollieWei
- opened
app.py
CHANGED
@@ -19,6 +19,13 @@ from minigpt4.processors import *
|
|
19 |
from minigpt4.runners import *
|
20 |
from minigpt4.tasks import *
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
def parse_args():
|
23 |
parser = argparse.ArgumentParser(description="Demo")
|
24 |
parser.add_argument("--cfg-path", type=str, default='eval_configs/minigpt4.yaml', help="path to configuration file.")
|
|
|
19 |
from minigpt4.runners import *
|
20 |
from minigpt4.tasks import *
|
21 |
|
22 |
+
import shutil
|
23 |
+
import os
|
24 |
+
|
25 |
+
# ζΈ
ι€ζε£η huggingface 樑εεΏ«ε
|
26 |
+
shutil.rmtree(os.path.expanduser("~/.cache/huggingface/hub"), ignore_errors=True)
|
27 |
+
|
28 |
+
|
29 |
def parse_args():
|
30 |
parser = argparse.ArgumentParser(description="Demo")
|
31 |
parser.add_argument("--cfg-path", type=str, default='eval_configs/minigpt4.yaml', help="path to configuration file.")
|