RadRuss commited on
Commit
cc7f7be
·
verified ·
1 Parent(s): ae67963

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -465,7 +465,13 @@ def chatbot_interface(user_query: str, history: list[dict]) -> tuple[list[dict],
465
  return updated_history, updated_history
466
 
467
  # Create the Gradio interface with history components
468
- with gr.Blocks() as iface:
 
 
 
 
 
 
469
  # Use gr.Chatbot with type='messages' to handle history in OpenAI message format
470
  chatbot = gr.Chatbot(label="Process Assistant Chatbot", type='messages')
471
  msg = gr.Textbox(label="Ask a question about business processes.")
 
465
  return updated_history, updated_history
466
 
467
  # Create the Gradio interface with history components
468
+ with gr.Blocks(theme=gr.themes.Soft()) as iface:
469
+ gr.HTML("""
470
+ <div style='display:flex; align-items:center; gap:15px;'>
471
+ <img src='https://images.squarespace-cdn.com/content/v1/62835c73f824d0627cfba7a7/093df9f4-89e4-48f9-8359-2096efe5b65a/Logo_bp_experts_2019.png' style='height:60px;'>
472
+ <h2 style='margin:0;'>Business Flows Assistant</h2>
473
+ </div>
474
+ """)
475
  # Use gr.Chatbot with type='messages' to handle history in OpenAI message format
476
  chatbot = gr.Chatbot(label="Process Assistant Chatbot", type='messages')
477
  msg = gr.Textbox(label="Ask a question about business processes.")