TejAndrewsACC commited on
Commit
b2bc689
·
verified ·
1 Parent(s): 0fd0940

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -129
app.py CHANGED
@@ -3645,133 +3645,6 @@ def respond(message, history, max_tokens, temperature, top_p):
3645
  yield response
3646
 
3647
 
3648
-
3649
- css = """
3650
- /* Import Caveat font from Google Fonts */
3651
- @import url('https://fonts.googleapis.com/css2?family=Caveat&display=swap');
3652
-
3653
- /* Apply Caveat font globally and increase font size to 125% */
3654
- * {
3655
- font-family: 'Caveat', cursive !important;
3656
- font-size: 16pt;
3657
- }
3658
-
3659
- #chat-interface {
3660
- animation: pulse 1.5s infinite, ripple 2s infinite, glass 3s infinite alternate;
3661
- }
3662
-
3663
- @keyframes pulse {
3664
- 0% { transform: scale(1); opacity: 1; }
3665
- 25% { transform: scale(1.05); opacity: 0.9; }
3666
- 50% { transform: scale(1); opacity: 1; }
3667
- 75% { transform: scale(1.05); opacity: 0.9; }
3668
- 100% { transform: scale(1); opacity: 1; }
3669
- }
3670
-
3671
- @keyframes ripple {
3672
- 0% {
3673
- transform: scale(1);
3674
- box-shadow: 0 0 0 0 rgba(0, 150, 255, 0.6);
3675
- }
3676
- 50% {
3677
- transform: scale(1.2);
3678
- box-shadow: 0 0 30px 20px rgba(0, 150, 255, 0.8);
3679
- }
3680
- 100% {
3681
- transform: scale(1);
3682
- box-shadow: 0 0 0 0 rgba(0, 150, 255, 0.6);
3683
- }
3684
- }
3685
-
3686
- @keyframes glass {
3687
- 0% { background-color: rgba(0, 102, 255, 0.5); border-radius: 15px; }
3688
- 25% { background-color: rgba(0, 150, 255, 0.7); border-radius: 20px; }
3689
- 50% { background-color: rgba(0, 200, 255, 1); border-radius: 25px; }
3690
- 75% { background-color: rgba(0, 150, 255, 0.7); border-radius: 30px; }
3691
- 100% { background-color: rgba(0, 102, 255, 0.5); border-radius: 35px; }
3692
- }
3693
-
3694
- body {
3695
- background-color: #001f2d;
3696
- color: #fff;
3697
- }
3698
-
3699
- .gradio-container {
3700
- backdrop-filter: blur(10px);
3701
- border-radius: 20px;
3702
- padding: 20px;
3703
- box-shadow: 0px 0px 30px rgba(0, 102, 255, 0.5);
3704
- background: rgba(0, 0, 0, 0.5);
3705
- transition: background 1s, border-radius 1s;
3706
- position: relative;
3707
- }
3708
-
3709
- .gradio-container::before {
3710
- content: "";
3711
- position: absolute;
3712
- top: 0;
3713
- left: 0;
3714
- right: 0;
3715
- bottom: 0;
3716
- border: 2px solid rgba(0, 150, 255, 0.8);
3717
- border-radius: 20px;
3718
- z-index: -1;
3719
- box-shadow: 0 0 20px 5px rgba(0, 150, 255, 0.7);
3720
- }
3721
-
3722
- .gradio-input {
3723
- background-color: rgba(0, 102, 255, 0.3);
3724
- border: 2px solid rgba(0, 102, 255, 0.6);
3725
- border-radius: 10px;
3726
- color: #fff;
3727
- font-size: 18px;
3728
- transition: background-color 0.5s, border 0.5s;
3729
- }
3730
-
3731
- .gradio-input:focus {
3732
- background-color: rgba(0, 102, 255, 0.5);
3733
- border: 2px solid rgba(0, 150, 255, 0.8);
3734
- }
3735
-
3736
- .gradio-button {
3737
- background: rgba(0, 102, 255, 0.6);
3738
- border: 2px solid rgba(0, 102, 255, 1);
3739
- border-radius: 12px;
3740
- color: #fff;
3741
- font-size: 18px;
3742
- transition: background 0.3s, transform 0.3s;
3743
- }
3744
-
3745
- .gradio-button:hover {
3746
- background: rgba(0, 150, 255, 1);
3747
- transform: scale(1.05);
3748
- }
3749
-
3750
- .gradio-button:active {
3751
- background: rgba(0, 200, 255, 1);
3752
- transform: scale(0.95);
3753
- }
3754
-
3755
- .gradio-slider {
3756
- color: #fff;
3757
- }
3758
-
3759
- .gradio-slider .slider-container {
3760
- background: rgba(0, 102, 255, 0.3);
3761
- border-radius: 8px;
3762
- border: 1px solid rgba(0, 102, 255, 0.5);
3763
- }
3764
-
3765
- .gradio-slider .slider-container .gradio-slider__track {
3766
- background: rgba(0, 150, 255, 0.5);
3767
- }
3768
-
3769
- .gradio-slider .slider-container .gradio-slider__thumb {
3770
- background-color: rgba(0, 200, 255, 1);
3771
- }
3772
- """
3773
-
3774
-
3775
  demo = gr.ChatInterface(
3776
  fn=respond,
3777
  type="messages",
@@ -3781,7 +3654,7 @@ demo = gr.ChatInterface(
3781
  flagging_mode="manual",
3782
  chatbot=gr.Chatbot(
3783
  type="messages",
3784
- label="💠Z3ta-Z💠",
3785
  show_copy_button=True,
3786
  group_consecutive_messages=False,
3787
  avatar_images=(
@@ -3797,7 +3670,6 @@ demo = gr.ChatInterface(
3797
  gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="🧠⚡️ConversePTG's Neural Activity⚡️🧠")
3798
  ],
3799
  theme="TejAndrewsACC/ACC",
3800
- css=css
3801
  )
3802
 
3803
  if __name__ == "__main__":
 
3645
  yield response
3646
 
3647
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3648
  demo = gr.ChatInterface(
3649
  fn=respond,
3650
  type="messages",
 
3654
  flagging_mode="manual",
3655
  chatbot=gr.Chatbot(
3656
  type="messages",
3657
+ label="🤖ConversePTG🤖",
3658
  show_copy_button=True,
3659
  group_consecutive_messages=False,
3660
  avatar_images=(
 
3670
  gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="🧠⚡️ConversePTG's Neural Activity⚡️🧠")
3671
  ],
3672
  theme="TejAndrewsACC/ACC",
 
3673
  )
3674
 
3675
  if __name__ == "__main__":