Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,20 +42,26 @@ def respond(message, history):
|
|
42 |
cfg.description = f'''
|
43 |
<table>
|
44 |
<tr>
|
45 |
-
<td> <img src="https://github.com/david-oplatka/chatbot-streamlit/blob/main/Vectara-logo.png?raw=true"> </td>
|
46 |
-
<td> <h1>{cfg.title}</h1> </td>
|
47 |
-
<td> <p>This demo uses Retrieval Augmented Generation to ask questions about {cfg.source_data_desc}<p> </td>
|
48 |
</tr>
|
49 |
</table>
|
50 |
<center> <h2>{cfg.description}</h2></center>
|
51 |
'''
|
52 |
|
53 |
css = """
|
54 |
-
|
55 |
-
width:
|
|
|
56 |
}
|
57 |
-
|
58 |
border: none;
|
|
|
|
|
|
|
|
|
|
|
59 |
}
|
60 |
"""
|
61 |
|
|
|
42 |
cfg.description = f'''
|
43 |
<table>
|
44 |
<tr>
|
45 |
+
<td style="width: 33%;"> <img src="https://github.com/david-oplatka/chatbot-streamlit/blob/main/Vectara-logo.png?raw=true"> </td>
|
46 |
+
<td style="width: 234%;"> <h1>{cfg.title}</h1> </td>
|
47 |
+
<td style="width: 33%;"> <p>This demo uses Retrieval Augmented Generation to ask questions about {cfg.source_data_desc}<p> </td>
|
48 |
</tr>
|
49 |
</table>
|
50 |
<center> <h2>{cfg.description}</h2></center>
|
51 |
'''
|
52 |
|
53 |
css = """
|
54 |
+
table {
|
55 |
+
width: 100%;
|
56 |
+
table-layout: fixed;
|
57 |
}
|
58 |
+
td {
|
59 |
border: none;
|
60 |
+
text-align: center;
|
61 |
+
vertical-align: middle;
|
62 |
+
}
|
63 |
+
img {
|
64 |
+
width: 10%;
|
65 |
}
|
66 |
"""
|
67 |
|