Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,8 @@ 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-nzog3-ca819")
|
|
|
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
|
|
|
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-nzog3-ca819");
|
8 |
+
client = InferenceClient(model="ulisesbravo/autotrain-po0st-um4bf");
|
9 |
def classify_text(text):
|
10 |
# Realize a inferência chamando o método post
|
11 |
response_bytes = client.post(json={"inputs": text}) # Enviar o texto
|