Spaces:
Paused
Paused
Commit
·
751c1e6
1
Parent(s):
9dd267d
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,12 @@
|
|
| 1 |
from llama_cpp.server.app import create_app, Settings
|
| 2 |
from fastapi.responses import HTMLResponse
|
| 3 |
import os
|
|
|
|
| 4 |
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
app = create_app(
|
| 8 |
Settings(
|
|
|
|
| 1 |
from llama_cpp.server.app import create_app, Settings
|
| 2 |
from fastapi.responses import HTMLResponse
|
| 3 |
import os
|
| 4 |
+
import requests
|
| 5 |
|
| 6 |
+
url="https://huggingface.co/TheBloke/WizardLM-13B-V1.2-GGUF/resolve/main/wizardlm-13b-v1.2.Q4_0.gguf"
|
| 7 |
+
response = requests.get(url)
|
| 8 |
+
with open("./model.gguf", mode="wb") as file:
|
| 9 |
+
file.write(response.content)
|
| 10 |
|
| 11 |
app = create_app(
|
| 12 |
Settings(
|