Spaces:
Running
Running
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) | |