einfachalf commited on
Commit
80ae9d3
1 Parent(s): f1794fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -164
app.py CHANGED
@@ -365,171 +365,7 @@ def http_bot(state, model_selector, temperature, max_new_tokens, topk, request:
365
  block_css = (
366
  code_highlight_css
367
  + """
368
- pre {
369
- white-space: pre-wrap; /* Since CSS 2.1 */
370
- white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
371
- white-space: -pre-wrap; /* Opera 4-6 */
372
- white-space: -o-pre-wrap; /* Opera 7 */
373
- word-wrap: break-word; /* Internet Explorer 5.5+ */
374
- }
375
- #notice_markdown th {
376
- display: none;
377
- }
378
-
379
- #notice_markdown {
380
- text-align: center;
381
- background: #2e78c4;
382
- padding: 1%;
383
- height: 4.3rem;
384
- color: #fff !important;
385
- margin-top: 0;
386
- }
387
-
388
- #notice_markdown p{
389
- color: #fff !important;
390
- }
391
-
392
-
393
- #notice_markdown h1, #notice_markdown h4 {
394
- color: #fff;
395
- margin-top: 0;
396
- }
397
-
398
- gradio-app {
399
- background: linear-gradient(to bottom, #86ccf5, #3273bf) !important;
400
- padding: 3%;
401
- }
402
-
403
- .gradio-container {
404
- margin: 0 auto !important;
405
- width: 70% !important;
406
- padding: 0 !important;
407
- background: #fff !important;
408
- border-radius: 5px !important;
409
- }
410
-
411
- #chatbot {
412
- border-style: solid;
413
- overflow: visible;
414
- margin: 1% 4%;
415
- width: 90%;
416
- box-shadow: 0 15px 15px -5px rgba(0, 0, 0, 0.2);
417
- border: 1px solid #ddd;
418
- }
419
-
420
- #chatbot::before {
421
- content: "";
422
- position: absolute;
423
- top: 0;
424
- right: 0;
425
- width: 60px;
426
- height: 60px;
427
- background-image: url(https://i.postimg.cc/gJzQTQPd/Microsoft-Teams-image-73.png);
428
- background-repeat: no-repeat;
429
- background-position: center center;
430
- background-size: contain;
431
- }
432
-
433
- #chatbot::after {
434
- content: "";
435
- position: absolute;
436
- top: 0;
437
- right: 60px;
438
- width: 60px;
439
- height: 60px;
440
- background-image: url(https://i.postimg.cc/QCBQ45b4/Microsoft-Teams-image-44.png);
441
- background-repeat: no-repeat;
442
- background-position: center center;
443
- background-size: contain;
444
- }
445
-
446
- #chatbot .wrap {
447
- margin-top: 30px !important;
448
- }
449
-
450
-
451
- #text-box-style, #btn-style {
452
- width: 90%;
453
- margin: 1% 4%;
454
- }
455
-
456
-
457
- .user, .bot {
458
- width: 80% !important;
459
-
460
- }
461
-
462
- .bot {
463
- white-space: pre-wrap !important;
464
- line-height: 1.3 !important;
465
- display: flex;
466
- flex-direction: column;
467
- justify-content: flex-start;
468
-
469
- }
470
-
471
- #btn-send-style {
472
- background: rgb(0, 180, 50);
473
- color: #fff;
474
- }
475
 
476
- #btn-list-style {
477
- background: #eee0;
478
- border: 1px solid #0053f4;
479
- }
480
-
481
- .title {
482
- font-size: 1.5rem;
483
- font-weight: 700;
484
- color: #fff !important;
485
- display: flex;
486
- justify-content: center;
487
- }
488
-
489
- footer {
490
- display: none !important;
491
- }
492
-
493
- .footer {
494
- margin-top: 2rem !important;
495
- text-align: center;
496
- border-bottom: 1px solid #e5e5e5;
497
- }
498
-
499
- .footer>p {
500
- font-size: .8rem;
501
- display: inline-block;
502
- padding: 0 10px;
503
- transform: translateY(10px);
504
- background: white;
505
- }
506
-
507
- .img-logo {
508
- width: 3.3rem;
509
- display: inline-block;
510
- margin-right: 1rem;
511
- }
512
-
513
- .img-logo-style {
514
- width: 3.5rem;
515
- float: left;
516
- }
517
-
518
- .img-logo-right-style {
519
- width: 3.5rem;
520
- display: inline-block !important;
521
- }
522
-
523
- .neural-studio-img-style {
524
- width: 50%;
525
- height: 20%;
526
- margin: 0 auto;
527
- }
528
-
529
- .acknowledgments {
530
- margin-bottom: 1rem !important;
531
- height: 1rem;
532
- }
533
  """
534
  )
535
 
 
365
  block_css = (
366
  code_highlight_css
367
  + """
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
368
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
369
  """
370
  )
371