Update app.py
Browse files
app.py
CHANGED
|
@@ -3,6 +3,8 @@ from huggingface_hub import InferenceClient
|
|
| 3 |
|
| 4 |
# Substitua por seu token se for necessário: client = InferenceClient(token="seu_token_aqui")
|
| 5 |
client = InferenceClient(model="mistralai/Mistral-7B-Instruct-v0.3")
|
|
|
|
|
|
|
| 6 |
|
| 7 |
# Função para processar a conversa
|
| 8 |
def responder(mensagem, historico):
|
|
|
|
| 3 |
|
| 4 |
# Substitua por seu token se for necessário: client = InferenceClient(token="seu_token_aqui")
|
| 5 |
client = InferenceClient(model="mistralai/Mistral-7B-Instruct-v0.3")
|
| 6 |
+
resposta = client.text_generation(prompt="Qual a capital da França?", max_new_tokens=50)
|
| 7 |
+
print(resposta)
|
| 8 |
|
| 9 |
# Função para processar a conversa
|
| 10 |
def responder(mensagem, historico):
|