Files changed (1) hide show
  1. app.py +7 -0
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.")