Spaces:
Running
Running
File size: 604 Bytes
446d2fd 544ecfa 446d2fd 544ecfa 339f3c1 1c005bc 0cb8c5e 1c005bc 339f3c1 0cb8c5e |
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:
gr.Markdown("**Note:** You need to use a SambaNova API key from [SambaNova Cloud](https://cloud.sambanova.ai/).")
gemini_interface = gr.load(
name="gemini-1.5-flash", # Se establece el modelo por defecto
src=gemini_gradio.registry,
fill_height=True,
chatbot=gr.Chatbot(type="messages"),
temperature=0.7, # Aquí ajustas la temperatura
top_p=0.9, # Aquí ajustas top_p
top_k=50 # Aquí ajustas top_k
)
demo.launch(ssr_mode=true)
|