Update app.py
Browse files
app.py
CHANGED
|
@@ -53,9 +53,12 @@ with gr.Blocks(fill_height=True) as demo:
|
|
| 53 |
inputs=[llama_model],
|
| 54 |
outputs=[llama_interface]
|
| 55 |
)
|
| 56 |
-
|
| 57 |
genai.configure(api_key=os.getenv("GEMINI_API_KEY"))
|
|
|
|
|
|
|
| 58 |
gr.Markdown("**Note:** You need to use a Google Gemini API key from your account.")
|
|
|
|
| 59 |
with gr.Tab("Gemini"):
|
| 60 |
with gr.Row():
|
| 61 |
gemini_model = gr.Dropdown(
|
|
@@ -79,7 +82,6 @@ genai.configure(api_key=os.getenv("GEMINI_API_KEY"))
|
|
| 79 |
def update_gemini_model(new_model):
|
| 80 |
return gr.load(
|
| 81 |
name=new_model,
|
| 82 |
-
src=gemini_gradio.registry,
|
| 83 |
fill_height=True,
|
| 84 |
chatbot=gr.Chatbot(height=600)
|
| 85 |
)
|
|
|
|
| 53 |
inputs=[llama_model],
|
| 54 |
outputs=[llama_interface]
|
| 55 |
)
|
| 56 |
+
# Configurar la API de Google Gemini
|
| 57 |
genai.configure(api_key=os.getenv("GEMINI_API_KEY"))
|
| 58 |
+
|
| 59 |
+
with gr.Blocks() as demo:
|
| 60 |
gr.Markdown("**Note:** You need to use a Google Gemini API key from your account.")
|
| 61 |
+
|
| 62 |
with gr.Tab("Gemini"):
|
| 63 |
with gr.Row():
|
| 64 |
gemini_model = gr.Dropdown(
|
|
|
|
| 82 |
def update_gemini_model(new_model):
|
| 83 |
return gr.load(
|
| 84 |
name=new_model,
|
|
|
|
| 85 |
fill_height=True,
|
| 86 |
chatbot=gr.Chatbot(height=600)
|
| 87 |
)
|