Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,6 +3,16 @@ from joblib import load
|
|
| 3 |
from huggingface_hub import hf_hub_download
|
| 4 |
import pandas as pd
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
# Carregar o modelo diretamente do Hugging Face
|
| 7 |
model_path = hf_hub_download(repo_id="coan/botClaiton", filename="model.joblib")
|
| 8 |
model = load(model_path)
|
|
|
|
| 3 |
from huggingface_hub import hf_hub_download
|
| 4 |
import pandas as pd
|
| 5 |
|
| 6 |
+
# Baixe o modelo do Hugging Face Hub
|
| 7 |
+
model_path = hf_hub_download(
|
| 8 |
+
repo_id="coan/botClaiton",
|
| 9 |
+
filename="model.pkl",
|
| 10 |
+
use_auth_token=True # Caso o reposit贸rio seja privado
|
| 11 |
+
)
|
| 12 |
+
|
| 13 |
+
# Carregue o modelo
|
| 14 |
+
model = joblib.load(model_path)
|
| 15 |
+
|
| 16 |
# Carregar o modelo diretamente do Hugging Face
|
| 17 |
model_path = hf_hub_download(repo_id="coan/botClaiton", filename="model.joblib")
|
| 18 |
model = load(model_path)
|