Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,18 +5,18 @@ import os
|
|
| 5 |
|
| 6 |
app = FastAPI()
|
| 7 |
|
| 8 |
-
#
|
| 9 |
model_path = hf_hub_download(
|
| 10 |
repo_id="Sanya2025/Proxima_B-instruct-Q5_0-GGUF",
|
| 11 |
-
filename="
|
| 12 |
-
|
| 13 |
|
| 14 |
llm = Llama(
|
| 15 |
model_path=model_path,
|
| 16 |
n_ctx=4096,
|
| 17 |
n_threads=4,
|
| 18 |
verbose=False
|
| 19 |
-
|
| 20 |
|
| 21 |
@app.post("/v1/chat/completions")
|
| 22 |
async def chat(request: dict):
|
|
|
|
| 5 |
|
| 6 |
app = FastAPI()
|
| 7 |
|
| 8 |
+
# ✅ Исправленное имя файла — точно как в репозитории
|
| 9 |
model_path = hf_hub_download(
|
| 10 |
repo_id="Sanya2025/Proxima_B-instruct-Q5_0-GGUF",
|
| 11 |
+
filename="proxima_b-instruct-q5_0.gguf" # ← нижний регистр, подчёркивания!
|
| 12 |
+
)
|
| 13 |
|
| 14 |
llm = Llama(
|
| 15 |
model_path=model_path,
|
| 16 |
n_ctx=4096,
|
| 17 |
n_threads=4,
|
| 18 |
verbose=False
|
| 19 |
+
)
|
| 20 |
|
| 21 |
@app.post("/v1/chat/completions")
|
| 22 |
async def chat(request: dict):
|