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