Update app.py
Browse files
app.py
CHANGED
|
@@ -2,9 +2,10 @@ import gradio as gr
|
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
|
| 4 |
# Substitua por seu token se for necessário: client = InferenceClient(token="seu_token_aqui")
|
| 5 |
-
client = InferenceClient(
|
| 6 |
-
|
| 7 |
-
|
|
|
|
| 8 |
|
| 9 |
# Função para processar a conversa
|
| 10 |
def responder(mensagem, historico):
|
|
|
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
|
| 4 |
# Substitua por seu token se for necessário: client = InferenceClient(token="seu_token_aqui")
|
| 5 |
+
client = InferenceClient(
|
| 6 |
+
model="mistralai/Mistral-7B-Instruct-v0.3",
|
| 7 |
+
token=os.getenv("HF_TOKEN")
|
| 8 |
+
)
|
| 9 |
|
| 10 |
# Função para processar a conversa
|
| 11 |
def responder(mensagem, historico):
|