Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,8 @@ from huggingface_hub import InferenceClient
|
|
3 |
import json
|
4 |
|
5 |
# Inicialize o cliente com o modelo do Hugging Face
|
6 |
-
client = InferenceClient(model="ulisesbravo/autotrain-nsuej-5ctie")
|
7 |
-
|
8 |
def classify_text(text):
|
9 |
# Realize a inferência chamando o método post
|
10 |
response_bytes = client.post(json={"inputs": text}) # Enviar o texto
|
|
|
3 |
import json
|
4 |
|
5 |
# Inicialize o cliente com o modelo do Hugging Face
|
6 |
+
#client = InferenceClient(model="ulisesbravo/autotrain-nsuej-5ctie")
|
7 |
+
client = InferenceClient(model="ulisesbravo/autotrain-wlgd2-3sulg")
|
8 |
def classify_text(text):
|
9 |
# Realize a inferência chamando o método post
|
10 |
response_bytes = client.post(json={"inputs": text}) # Enviar o texto
|