Wanswan commited on
Commit
baf0c96
·
verified ·
1 Parent(s): 69abbb9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -68
app.py CHANGED
@@ -200,93 +200,43 @@ def init():
200
  return [{"role": "assistant", "content": WELCOME_MESSAGE_EN}], 0, "", [], False
201
 
202
 
203
-
204
  with gr.Blocks(css="""
205
  .send-btn {
206
  background-color: #25D366 !important;
207
  color: white !important;
208
  border: none;
209
- border-radius: 20px;
210
- font-size: 18px;
211
- padding: 6px 12px;
212
- height: 42px;
213
- width: 52px;
214
- margin-left: 6px;
215
  cursor: pointer;
216
  }
217
- #chatbox {
218
- max-width: 100% !important;
219
- padding: 0 8px !important;
220
- }
221
-
222
  #chatbox .avatar-container {
223
- width: 48px !important;
224
- height: 48px !important;
225
- min-width: 48px !important;
226
- min-height: 48px !important;
227
- margin-right: 6px !important;
228
  background-size: 100% 100% !important;
229
  background-position: center center !important;
230
  border-radius: 50% !important;
231
  padding: 0 !important;
 
232
  border: none !important;
233
  box-shadow: none !important;
234
  background-color: transparent !important;
235
  }
236
- #chatbox .message {
237
- line-height: 1.4em !important;
238
- padding: 4px 8px !important;
239
- border-radius: 10px !important;
240
- font-size: 15px !important;
241
- max-width: 96% !important;
242
- word-wrap: break-word !important;
243
- word-break: break-word !important;
244
- white-space: normal !important;
245
- overflow-wrap: break-word !important;
246
- }
247
- #chatbox .message.user {
248
- background-color: #DCF8C6 !important;
249
- text-align: left !important;
250
- }
251
- .wrap, .gr-container {
252
- max-width: 100vw !important;
253
- width: 100vw !important;
254
- padding: 0 !important;
255
- margin: 0 !important;
256
- }
257
- .gradio-container {
258
- padding: 0 !important;
259
- margin: 0 !important;
260
- width: 100vw !important;
261
- }
262
- body, html {
263
- margin: 0 !important;
264
- padding: 0 !important;
265
- width: 100vw !important;
266
- overflow-x: hidden !important;
267
- }
268
-
269
- html, body {
270
- margin: 0 !important;
271
- padding: 0 !important;
272
- width: 100vw !important;
273
- overflow-x: hidden !important;
274
- }
275
-
276
- .gradio-container, .gr-box, .gr-block.gr-box, .wrap, .gr-container {
277
- margin: 0 !important;
278
- padding: 0 !important;
279
- max-width: 100vw !important;
280
- width: 100vw !important;
281
- box-shadow: none !important;
282
- border: none !important;
283
- }
284
-
285
  #chatbox .message.assistant { background-color: #ffffff !important; }
286
  footer { display: none !important; }
287
  .svelte-1ipelgc { display: none !important; }
288
- .icon-button-wrapper { display: none !important; }
289
- label.svelte-1to105q { display: none !important; }
 
 
 
 
290
  """) as demo:
291
  gr.HTML("""
292
  <script>
 
200
  return [{"role": "assistant", "content": WELCOME_MESSAGE_EN}], 0, "", [], False
201
 
202
 
 
203
  with gr.Blocks(css="""
204
  .send-btn {
205
  background-color: #25D366 !important;
206
  color: white !important;
207
  border: none;
208
+ border-radius: 24px;
209
+ font-size: 20px;
210
+ padding: 8px 20px;
211
+ height: 48px;
212
+ width: 60px;
213
+ margin-left: 8px;
214
  cursor: pointer;
215
  }
 
 
 
 
 
216
  #chatbox .avatar-container {
217
+ width: 64px !important;
218
+ height: 64px !important;
219
+ min-width: 64px !important;
220
+ min-height: 64px !important;
 
221
  background-size: 100% 100% !important;
222
  background-position: center center !important;
223
  border-radius: 50% !important;
224
  padding: 0 !important;
225
+ margin: 0 !important;
226
  border: none !important;
227
  box-shadow: none !important;
228
  background-color: transparent !important;
229
  }
230
+ #chatbox .message.user { background-color: #DCF8C6 !important; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
231
  #chatbox .message.assistant { background-color: #ffffff !important; }
232
  footer { display: none !important; }
233
  .svelte-1ipelgc { display: none !important; }
234
+ .icon-button-wrapper {
235
+ display: none !important;
236
+ }
237
+ label.svelte-1to105q {
238
+ display: none !important;
239
+ }
240
  """) as demo:
241
  gr.HTML("""
242
  <script>