geronimo-pericoli commited on
Commit
ba36b5d
verified
1 Parent(s): 664ee3f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,5 +1,4 @@
1
  import gradio as gr
2
- from gradio.themes.base import Base
3
  from llama_index.core import VectorStoreIndex
4
  from llama_index.core import (
5
  StorageContext,
@@ -422,7 +421,7 @@ async def chat_with_agent(message, history):
422
 
423
 
424
  # Configuraci贸n de la interfaz Gradio
425
- with gr.Blocks(title="Herramientas MCP", theme=seafoam) as tools_tab:
426
  with gr.Accordion("B煤squeda Acad茅mica", open=False):
427
  arxiv_interface = gr.Interface(
428
  fn=search_arxiv,
@@ -485,7 +484,7 @@ with gr.Blocks(title="Herramientas MCP", theme=seafoam) as tools_tab:
485
  )
486
 
487
  # Creamos el Agente MCP (puedes personalizar esto seg煤n necesites)
488
- with gr.Blocks(title="Agente MCP", theme=seafoam) as agent_tab:
489
  # Chat principal
490
  chatbot = gr.Chatbot(
491
  label="Chat con el Agente MCP",
 
1
  import gradio as gr
 
2
  from llama_index.core import VectorStoreIndex
3
  from llama_index.core import (
4
  StorageContext,
 
421
 
422
 
423
  # Configuraci贸n de la interfaz Gradio
424
+ with gr.Blocks(title="Herramientas MCP", theme=gr.themes.Base()) as tools_tab:
425
  with gr.Accordion("B煤squeda Acad茅mica", open=False):
426
  arxiv_interface = gr.Interface(
427
  fn=search_arxiv,
 
484
  )
485
 
486
  # Creamos el Agente MCP (puedes personalizar esto seg煤n necesites)
487
+ with gr.Blocks(title="Agente MCP", theme=gr.themes.Base()) as agent_tab:
488
  # Chat principal
489
  chatbot = gr.Chatbot(
490
  label="Chat con el Agente MCP",