Redmind commited on
Commit
c177ca7
·
verified ·
1 Parent(s): 315940e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -104
app.py CHANGED
@@ -596,110 +596,6 @@ def answer_question(user_question, chatbot, audio=None):
596
  return gr.update(value=chatbot)
597
  # response_text = response_text.replace('\n', ' ').replace(' ', ' ').strip()
598
  # return response_text
599
- """
600
-
601
- css =
602
- .gradio-container {
603
- width: 90%; /* Set the width as a percentage of the viewport */
604
- max-width: 1200px; /* Optional: Set a maximum width */
605
- margin: 0 auto; /* Center the container horizontally */
606
- }
607
- .gr-chatbot {
608
- /* Custom styles for the Chatbot component */
609
- border: 1px solid #ccc;
610
- border-radius: 10px;
611
- padding: 10px;
612
- background-color: #f9f9f9;
613
- width: 100%;
614
- height: 600px; /* Adjust the height as needed */
615
- overflow-y: auto; /* Add scroll if the content exceeds the height */
616
- }
617
-
618
- #submit, #clear {
619
- display: inline-block;
620
- margin-right: 10px;
621
- }
622
-
623
- .gr-button {
624
- height: 40px; /* Adjust the height as needed */
625
- width:100px;
626
-
627
- }
628
- .message-buttons-right{
629
- display: none !important;
630
- }
631
- .gr-audio {
632
- width: 30px;
633
- height: 30px;
634
- border-radius: 50%;
635
-
636
- background-size: cover;
637
- background-position: center;
638
- margin-left: 10px;
639
- cursor: pointer;
640
- }
641
- .custom-button {
642
- /* background-color: #4CAF50; Initial Green */
643
- border: none;
644
- color: black;
645
- padding: 15px 32px;
646
- text-align: center;
647
- text-decoration: none;
648
- display: inline-block;
649
- font-family : Calibri;
650
- font-size: 11px;
651
- margin: 4px 2px;
652
- width: 50px; /* Set width to 50px */
653
- height: 100px; /* Set height to 50px */
654
- transition: background-color 0.4s, transform 0.5s ease-in-out; /* Smooth transition */
655
- cursor: pointer;
656
- }
657
-
658
- .custom-button:hover {
659
- /* background-color: #45a049; Darker Green on hover */
660
- transform: scale(1.1); /* Scale up slightly on hover */
661
- }
662
-
663
- @keyframes button-animation {
664
- 0% { transform: scale(1); }
665
- 50% { transform: scale(1.1); }
666
- 100% { transform: scale(1); }
667
- }
668
- #button2 {
669
- background-color: "yellow";
670
- /* The rest of the CSS is similar to button1 */
671
- }
672
- #button2 {
673
- background-color: "red";
674
- /* The rest of the CSS is similar to button1 */
675
- }
676
- #button3 {
677
- background-color: "blue";
678
- /* The rest of the CSS is similar to button1 */
679
- }
680
- #button4 {
681
- background-color: "green";
682
- /* The rest of the CSS is similar to button1 */
683
- }
684
- #button5 {
685
- background-color: "purple";
686
- /* The rest of the CSS is similar to button1 */
687
- }
688
- .logout-link {
689
- position: fixed;
690
- top: 10px;
691
- right: 50px;
692
- width:50px;
693
- font-size: 14px;
694
- color: #007BFF;
695
- background: none;
696
- border: none;
697
- cursor: pointer;
698
- text-decoration: underline;
699
- }
700
-
701
- """
702
-
703
 
704
  def submit_feedback(feedback, chatbot):
705
  gr.Info("Thank you for your feedback.")
 
596
  return gr.update(value=chatbot)
597
  # response_text = response_text.replace('\n', ' ').replace(' ', ' ').strip()
598
  # return response_text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
599
 
600
  def submit_feedback(feedback, chatbot):
601
  gr.Info("Thank you for your feedback.")