BICORP commited on
Commit
c3c9808
·
verified ·
1 Parent(s): de9a8d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -9
app.py CHANGED
@@ -58,16 +58,18 @@ dark_css = """
58
  outline: none;
59
  }
60
  #send-button {
61
- background-color: transparent; /* Transparent background */
62
- color: #007BFF; /* Button text color */
63
- border: none; /* No border */
64
- margin-left: -40px; /* Overlaps input box */
65
- cursor: pointer; /* Pointer cursor */
66
- font-size: 18px; /* Slightly larger icon */
67
- padding: 0; /* Remove padding */
 
 
68
  }
69
  #send-button:hover {
70
- color: #0056b3; /* Darker hover color */
71
  }
72
  """
73
 
@@ -86,7 +88,7 @@ def create_interface():
86
  # Input field with button inside
87
  with gr.Row(elem_id="input-container"):
88
  message = gr.Textbox(placeholder="Type a message...", elem_id="message-input", lines=1, show_label=False)
89
- send_btn = gr.Button("", elem_id="send-button") # Button overlaps input box
90
 
91
  # Settings section
92
  with gr.Accordion("⚙️ Settings", open=False):
 
58
  outline: none;
59
  }
60
  #send-button {
61
+ background-color: #007BFF; /* Button background color */
62
+ color: white; /* Button text color */
63
+ border: none; /* No border */
64
+ border-radius: 20px; /* Rounded corners */
65
+ padding: 10px 20px; /* Padding for the button */
66
+ font-size: 14px; /* Font size for the button text */
67
+ margin-left: 10px; /* Space between input and button */
68
+ cursor: pointer; /* Pointer cursor */
69
+ transition: background-color 0.3s ease; /* Smooth hover transition */
70
  }
71
  #send-button:hover {
72
+ background-color: #0056b3; /* Darker hover color */
73
  }
74
  """
75
 
 
88
  # Input field with button inside
89
  with gr.Row(elem_id="input-container"):
90
  message = gr.Textbox(placeholder="Type a message...", elem_id="message-input", lines=1, show_label=False)
91
+ send_btn = gr.Button("Send", elem_id="send-button")
92
 
93
  # Settings section
94
  with gr.Accordion("⚙️ Settings", open=False):