trishat commited on
Commit
e18a5f5
·
verified ·
1 Parent(s): 42fb17f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -103,13 +103,16 @@ def respond(message, history):
103
 
104
  return response.choices[0].message.content.strip()
105
 
106
- my_theme = gr.themes.Ocean().set(
107
- background_fill_primary="#1a202c", # Main background color (e.g., Dark mode)
108
- background_fill_secondary="#2d3748", # Sidebar/secondary area background
109
- body_background_fill="#1a202c" # Outer body background
 
 
 
110
  )
111
 
112
- with gr.Blocks(theme=gr.themes.Ocean()) as demo:
113
  chatbot = gr.ChatInterface(
114
  fn = respond,
115
  cache_examples = False,
 
103
 
104
  return response.choices[0].message.content.strip()
105
 
106
+ theme = gr.themes.Soft().set(
107
+ body_background_fill="#000000",
108
+ body_text_color="#00ff88",
109
+ block_background_fill="#111111",
110
+ block_border_color="#00ff88",
111
+ button_primary_background_fill="#00ff88",
112
+ button_primary_text_color="#000000"
113
  )
114
 
115
+ with gr.Blocks(theme=theme) as demo:
116
  chatbot = gr.ChatInterface(
117
  fn = respond,
118
  cache_examples = False,