spanofzero commited on
Commit
bfa0027
·
verified ·
1 Parent(s): c569764

typos no go

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -89,7 +89,8 @@ footer {display: none !important}
89
  .message.bot { background-color: #0f172a !important; color: #60a5fa !important; }
90
  """
91
 
92
- with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue"), css=custom_css) as demo:
 
93
  gr.Markdown("# Advanced Logic Interface")
94
  gr.ChatInterface(
95
  fn=generate_response,
@@ -103,4 +104,8 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue"), css=custom_css) as demo
103
  )
104
 
105
  if __name__ == "__main__":
106
- demo.queue().launch(show_api=False)
 
 
 
 
 
89
  .message.bot { background-color: #0f172a !important; color: #60a5fa !important; }
90
  """
91
 
92
+ # FIX 1: Removed theme and css from the Blocks constructor
93
+ with gr.Blocks() as demo:
94
  gr.Markdown("# Advanced Logic Interface")
95
  gr.ChatInterface(
96
  fn=generate_response,
 
104
  )
105
 
106
  if __name__ == "__main__":
107
+ # FIX 2: Passed theme and css directly into launch(), and removed show_api=False
108
+ demo.queue().launch(
109
+ theme=gr.themes.Soft(primary_hue="blue"),
110
+ css=custom_css
111
+ )