Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,16 +2,13 @@ import gradio as gr
|
|
2 |
import gemini_gradio
|
3 |
|
4 |
with gr.Blocks(fill_height=True) as demo:
|
5 |
-
|
6 |
-
gr.Markdown("<h1 style='text-align:center;'>CopyMaster</h1>") # Título centrado
|
7 |
-
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
|
8 |
|
9 |
gemini_interface = gr.load(
|
10 |
name="gemini-1.5-flash", # Se establece el modelo por defecto
|
11 |
src=gemini_gradio.registry,
|
12 |
-
textbox=gr.Textbox(placeholder="Escribe tu pregunta para Gemini"),
|
13 |
fill_height=True,
|
14 |
chatbot=gr.Chatbot(type="messages")
|
15 |
)
|
16 |
|
17 |
-
demo.launch(ssr_mode=
|
|
|
2 |
import gemini_gradio
|
3 |
|
4 |
with gr.Blocks(fill_height=True) as demo:
|
5 |
+
gr.Markdown("**Note:** You need to use a SambaNova API key from [SambaNova Cloud](https://cloud.sambanova.ai/).")
|
|
|
|
|
6 |
|
7 |
gemini_interface = gr.load(
|
8 |
name="gemini-1.5-flash", # Se establece el modelo por defecto
|
9 |
src=gemini_gradio.registry,
|
|
|
10 |
fill_height=True,
|
11 |
chatbot=gr.Chatbot(type="messages")
|
12 |
)
|
13 |
|
14 |
+
demo.launch(ssr_mode=True)
|