koh1018 commited on
Commit
5eac1c8
·
1 Parent(s): f018bf3

권한 확보

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -1,5 +1,10 @@
1
  # app.py (GGUF + llama-cpp-python 버전)
2
 
 
 
 
 
 
3
  from fastapi import FastAPI
4
  from pydantic import BaseModel
5
  from llama_cpp import Llama
 
1
  # app.py (GGUF + llama-cpp-python 버전)
2
 
3
+ import os
4
+
5
+ os.makedirs("/app/huggingface_cache", exist_ok=True)
6
+ os.chmod("/app/huggingface_cache", 0o777)
7
+
8
  from fastapi import FastAPI
9
  from pydantic import BaseModel
10
  from llama_cpp import Llama