rossiter78 commited on
Commit
1a987fc
·
verified ·
1 Parent(s): d7c3d50

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -61,19 +61,21 @@ def call_langflow(message, history):
61
 
62
  # Create Gradio Chat Interface
63
  custom_css = """
64
- /* Target the ChatInterface submit button by its 'primary' variant */
65
- button[data-testid="button"].primary {
66
  background-color: pink !important;
67
  color: white !important;
68
  border: none !important;
 
69
  }
70
 
71
  /* Hover effect */
72
- button[data-testid="button"].primary:hover {
73
  background-color: hotpink !important;
74
  color: white !important;
75
  }
76
  """
 
77
  demo = gr.ChatInterface(
78
  fn=call_langflow,
79
  title="Urban Air Chatbot POC",
 
61
 
62
  # Create Gradio Chat Interface
63
  custom_css = """
64
+ /* Style only the ChatInterface's pink submit button */
65
+ button.primary.svelte-cmf5ev {
66
  background-color: pink !important;
67
  color: white !important;
68
  border: none !important;
69
+ transition: background-color 0.2s ease-in-out !important;
70
  }
71
 
72
  /* Hover effect */
73
+ button.primary.svelte-cmf5ev:hover {
74
  background-color: hotpink !important;
75
  color: white !important;
76
  }
77
  """
78
+
79
  demo = gr.ChatInterface(
80
  fn=call_langflow,
81
  title="Urban Air Chatbot POC",