Update app.py
Browse files
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:
|
117 |
demo_css = """
|
118 |
#send_button {
|
119 |
background-color: #0b93f6;
|
120 |
border: none;
|
121 |
color: white;
|
122 |
-
font-size:
|
123 |
border-radius: 50%;
|
124 |
-
width:
|
125 |
-
height:
|
126 |
-
display: flex;
|
127 |
align-items: center;
|
128 |
-
justify-content:
|
129 |
cursor: pointer;
|
130 |
transition: background-color 0.3s;
|
131 |
-
flex: 0
|
|
|
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="
|
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):
|