Spaces:
Runtime error
Runtime error
Kaan
commited on
update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
| 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 |
|