VectorV17 commited on
Commit
94365ab
·
verified ·
1 Parent(s): 2a4ad85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -174,7 +174,8 @@ body.dark #header-container * {
174
  }
175
  """
176
 
177
- with gr.Blocks(css=custom_css, theme=gr.themes.Default()) as demo:
 
178
 
179
  # 1. Header Section
180
  with gr.Row(elem_id="header-container"):
@@ -193,9 +194,9 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Default()) as demo:
193
  # 2. Workspace Layout
194
  with gr.Row():
195
  with gr.Column(scale=2):
 
196
  chatbot = gr.Chatbot(
197
  label="Lane AI Support Stream",
198
- type="messages",
199
  value=[{"role": "assistant", "content": "Hello! I'm Lane, your FAQ Support Agent. How can I assist you with your platform infrastructure today?"}]
200
  )
201
 
@@ -266,4 +267,5 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Default()) as demo:
266
  )
267
 
268
  if __name__ == "__main__":
269
- demo.launch()
 
 
174
  }
175
  """
176
 
177
+ # FIXED: Removed 'css' and 'theme' from Blocks constructor
178
+ with gr.Blocks() as demo:
179
 
180
  # 1. Header Section
181
  with gr.Row(elem_id="header-container"):
 
194
  # 2. Workspace Layout
195
  with gr.Row():
196
  with gr.Column(scale=2):
197
+ # FIXED: Removed 'type="messages"' parameter
198
  chatbot = gr.Chatbot(
199
  label="Lane AI Support Stream",
 
200
  value=[{"role": "assistant", "content": "Hello! I'm Lane, your FAQ Support Agent. How can I assist you with your platform infrastructure today?"}]
201
  )
202
 
 
267
  )
268
 
269
  if __name__ == "__main__":
270
+ # FIXED: Passed 'css' and 'theme' parameter explicitly to launch()
271
+ demo.launch(css=custom_css, theme=gr.themes.Default())