File size: 2,680 Bytes
c493259
ae3c993
 
 
 
 
 
c493259
 
6848c8b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c493259
 
 
 
 
 
 
 
 
 
 
6848c8b
c493259
 
 
6848c8b
 
c493259
 
 
 
 
6848c8b
 
 
 
 
 
 
 
 
 
 
 
 
ae3c993
c493259
 
6848c8b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
def custom_css():
    """
    Custom CSS for Gradio interface to style buttons, chat container, and background.

    Returns:
        str: Custom CSS styles.
    """
    custom_css = """
    <style>
        /* Overall container for Gradio interface */
        .gradio-container {
            background-color: #74BA9C !important;
            display: flex !important;
            flex-direction: row; /* Make the left and right sections side by side */
            min-height: 100vh;
            padding: 20px;
            box-sizing: border-box;
            width: 100%;
            overflow: visible !important;
        }

        /* Left container for logo, input, and buttons */
        .gradio-left-container {
            display: flex;
            flex-direction: column;
            width: 40%;  /* Adjust width as needed */
            padding-right: 20px; /* Space between left and right sections */
        }

        /* Right container for the chat output */
        .gradio-right-container {
            display: flex;
            flex-direction: column;
            flex: 1;
            margin-left: 20px;  /* Space between left and right sections */
        }

        /* Style the logo */
        #logo img {
            width: auto;
            height: 190px;  /* Adjust the height of the logo */
            max-width: 100%;
            margin-bottom: 20px; /* Add margin for spacing between logo and other elements */
        }
        
        #logo {
             background-color: #ffffff !important;
        }

        /* Make the input text box expand to fill available space */
        .input-textbox {
            flex-grow: 1;
            height: 100px;
        }

        /* Submit button style */
        .submit-button {
            background-color: #E69A8D !important; /* Coral Red */
            color: white !important;
            border: none;
            padding: 10px 20px;
            text-align: center;
            font-size: 16px;
            margin: 4px 2px;
            cursor: pointer;
            border-radius: 5px;
        }

        .submit-button:hover {
            background-color: #D17F73 !important;
        }

        /* Feedback buttons layout */
        .feedback-buttons {
            display: flex;
            gap: 10px;
            margin-top: 5px;
        }

        /* Ensure the full page is responsive */
        body {
            margin: 0;
            padding: 0;
            height: auto;
            overflow-y: auto;
        }

        .gradio-row {
            display: flex;
            justify-content: flex-start;
            align-items: flex-start;
        }
    </style>
    """
    return custom_css