Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| from transformers import pipeline | |
| chatbot = pipeline("text-generation", model="mistralai/Mistral-7B-Instruct") | |
| def responder(mensaje, historial): | |
| respuesta = chatbot(mensaje, max_new_tokens=150)[0]["generated_text"] | |
| historial.append((mensaje, respuesta)) | |
| return historial, historial | |
| with gr.Blocks() as demo: | |
| gr.Markdown("# 🤖 Mi IA Online") | |
| chat = gr.Chatbot() | |
| entrada = gr.Textbox(placeholder="Escribe aquí…") | |
| entrada.submit(responder, [entrada, chat], [chat, chat]) | |
| # 👇 Aquí agregas tu etiqueta meta | |
| demo.launch( | |
| head="<meta name='google-site-verification' content='f5P6TlEBCkTQMNMgCsgEtax4J6PxHSP7pf18iPllCVk'>" | |
| ) | |