Update app.py
Browse files
app.py
CHANGED
@@ -98,17 +98,6 @@ def predict(message, history):
|
|
98 |
return response_with_logo
|
99 |
# Custom CSS for styling
|
100 |
css = '''
|
101 |
-
.gradio-container {
|
102 |
-
display: flex;
|
103 |
-
flex-direction: column;
|
104 |
-
width: 100%;
|
105 |
-
max-width: 450px;
|
106 |
-
margin: 0 auto;
|
107 |
-
padding: 20px;
|
108 |
-
background-color: #fff;
|
109 |
-
height: 100%;
|
110 |
-
max-height: 600px;
|
111 |
-
}
|
112 |
.gradio-logo {
|
113 |
text-align: center;
|
114 |
margin-bottom: 20px;
|
@@ -132,60 +121,11 @@ css = '''
|
|
132 |
align-items: center;
|
133 |
margin-bottom: 10px;
|
134 |
}
|
135 |
-
.response-text {
|
136 |
-
display: inline-block;
|
137 |
-
vertical-align: middle;
|
138 |
-
font-size: 16px;
|
139 |
-
background-color: #fff;
|
140 |
-
padding: 10px;
|
141 |
-
max-width: 80%;
|
142 |
-
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
143 |
-
}
|
144 |
-
.gradio-chat-history {
|
145 |
-
flex: 1;
|
146 |
-
overflow-y: auto;
|
147 |
-
padding: 15px;
|
148 |
-
background-color: #f9f9f9;
|
149 |
-
margin-bottom: 10px;
|
150 |
-
max-height: 500px;
|
151 |
-
}
|
152 |
-
.gradio-message {
|
153 |
-
margin-bottom: 15px;
|
154 |
-
display: flex;
|
155 |
-
flex-direction: column;
|
156 |
-
}
|
157 |
-
.gradio-message.user .gradio-message-content {
|
158 |
-
background-color: #E1FFC7;
|
159 |
-
align-self: flex-end;
|
160 |
-
padding: 10px;
|
161 |
-
font-size: 16px;
|
162 |
-
margin-bottom: 5px;
|
163 |
-
max-width: 80%;
|
164 |
-
}
|
165 |
-
.gradio-message.bot .gradio-message-content {
|
166 |
-
background-color: #fff;
|
167 |
-
align-self: flex-start;
|
168 |
-
padding: 10px;
|
169 |
-
font-size: 16px;
|
170 |
-
margin-bottom: 5px;
|
171 |
-
max-width: 80%;
|
172 |
-
}
|
173 |
-
.gradio-footer {
|
174 |
-
display: flex;
|
175 |
-
padding: 10px;
|
176 |
-
border-top: 1px solid #ddd;
|
177 |
-
background-color: #F8D7DA;
|
178 |
-
position: absolute;
|
179 |
-
bottom: 0;
|
180 |
-
width: calc(100% - 40px);
|
181 |
-
}
|
182 |
footer {
|
183 |
display: none !important;
|
184 |
background-color: #F8D7DA;
|
185 |
}
|
186 |
-
|
187 |
-
content: none;
|
188 |
-
}
|
189 |
'''
|
190 |
"""
|
191 |
|
|
|
98 |
return response_with_logo
|
99 |
# Custom CSS for styling
|
100 |
css = '''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
.gradio-logo {
|
102 |
text-align: center;
|
103 |
margin-bottom: 20px;
|
|
|
121 |
align-items: center;
|
122 |
margin-bottom: 10px;
|
123 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
footer {
|
125 |
display: none !important;
|
126 |
background-color: #F8D7DA;
|
127 |
}
|
128 |
+
|
|
|
|
|
129 |
'''
|
130 |
"""
|
131 |
|