SamiKoen commited on
Commit
5cd6d64
·
verified ·
1 Parent(s): 44af55e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -113,22 +113,23 @@ def predict(system_msg, inputs, top_p, temperature, chat_counter, chatbot=[], hi
113
  def reset_textbox():
114
  return gr.update(value='')
115
 
116
- # CSS: Buton stilini belirliyoruz ve genişlemesini önlemek için flex özelliği ekliyoruz.
117
  demo_css = """
118
  #send_button {
119
  background-color: #0b93f6;
120
  border: none;
121
  color: white;
122
- font-size: 15px;
123
  border-radius: 50%;
124
- width: 20px;
125
- height: 20px;
126
- display: flex;
127
  align-items: center;
128
- justify-content: left;
129
  cursor: pointer;
130
  transition: background-color 0.3s;
131
- flex: 0 0 auto; /* Butonun sabit genişlikte kalmasını sağlar */
 
132
  }
133
  #send_button:hover {
134
  background-color: #0077c0;
@@ -164,7 +165,7 @@ with gr.Blocks(css=demo_css, theme=theme) as demo:
164
  show_label=False,
165
  container=True
166
  )
167
- send_button = gr.Button(value="", elem_id="send_button")
168
 
169
  state = gr.State([])
170
  with gr.Accordion("", open=False, visible=False):
 
113
  def reset_textbox():
114
  return gr.update(value='')
115
 
116
+ # CSS: Butonun genişlemesini engellemek ve küçük, yuvarlak kalmasını sağlamak için ayarlandı.
117
  demo_css = """
118
  #send_button {
119
  background-color: #0b93f6;
120
  border: none;
121
  color: white;
122
+ font-size: 18px;
123
  border-radius: 50%;
124
+ width: 35px !important;
125
+ height: 35px !important;
126
+ display: inline-flex;
127
  align-items: center;
128
+ justify-content: center;
129
  cursor: pointer;
130
  transition: background-color 0.3s;
131
+ flex-grow: 0 !important;
132
+ flex-shrink: 0 !important;
133
  }
134
  #send_button:hover {
135
  background-color: #0077c0;
 
165
  show_label=False,
166
  container=True
167
  )
168
+ send_button = gr.Button(value="", elem_id="send_button")
169
 
170
  state = gr.State([])
171
  with gr.Accordion("", open=False, visible=False):