Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
from fastapi import FastAPI
|
| 2 |
-
from transformers import
|
| 3 |
|
| 4 |
app = FastAPI()
|
| 5 |
|
| 6 |
# Загрузка модели Hugging Face
|
| 7 |
-
model =
|
| 8 |
|
| 9 |
@app.post("/predict")
|
| 10 |
async def predict(text: str):
|
|
|
|
| 1 |
from fastapi import FastAPI
|
| 2 |
+
from transformers import AutoModel
|
| 3 |
|
| 4 |
app = FastAPI()
|
| 5 |
|
| 6 |
# Загрузка модели Hugging Face
|
| 7 |
+
model = AutoModel.from_pretrained("bartowski/Phi-3.5-mini-instruct-GGUF")
|
| 8 |
|
| 9 |
@app.post("/predict")
|
| 10 |
async def predict(text: str):
|