File size: 702 Bytes
446d2fd
544ecfa
60210e6
373cf9a
55b8141
 
 
 
373cf9a
 
 
bd9465f
373cf9a
 
 
339f3c1
373cf9a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import gradio as gr
import gemini_gradio

with gr.Blocks(fill_height=True) as demo:
    # Centrado con HTML
    gr.Markdown("<h1 style='text-align:center;'>CopyMaster</h1>")  # Título centrado
    gr.Markdown("<h3 style='text-align:center;'>El escritor de ventas que nunca duerme, siempre listo para conectar, cautivar y convencer a tu audiencia.</h3>")  # Subtítulo centrado
    
    gemini_interface = gr.load(
        name="gemini-1.5-flash",  # Se establece el modelo por defecto
        src=gemini_gradio.registry,
        textbox=gr.Textbox(placeholder="Escribe tu pregunta para Gemini"),
        fill_height=True,
        chatbot=gr.Chatbot(type="messages")
    )

demo.launch(ssr_mode=False)