Kaan commited on
Commit
f726f33
·
verified ·
1 Parent(s): 74c66ca

update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -3,8 +3,12 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
3
  from llama_cpp import Llama
4
  from huggingface_hub import hf_hub_download
5
 
 
6
 
7
- hf_hub_download(repo_id="TheBloke/Mistral-7B-v0.1-GGUF", filename="mistral-7b-v0.1.Q4_K_M.gguf")
 
 
 
8
 
9
 
10
 
 
3
  from llama_cpp import Llama
4
  from huggingface_hub import hf_hub_download
5
 
6
+ app = FastAPI()
7
 
8
+ @app.get("/")
9
+ async def install_model():
10
+ hf_hub_download(repo_id="TheBloke/Mistral-7B-v0.1-GGUF", filename="mistral-7b-v0.1.Q4_K_M.gguf")
11
+ return "success"
12
 
13
 
14