Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -38,14 +38,34 @@ def respond(message, history):
|
|
38 |
response = vq.submit_query(message)
|
39 |
yield response
|
40 |
|
41 |
-
cfg.title = f'''<
|
42 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
'''
|
44 |
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
|
50 |
if cfg.examples:
|
51 |
app_examples = [example.strip() for example in cfg.examples.split(",")]
|
|
|
38 |
response = vq.submit_query(message)
|
39 |
yield response
|
40 |
|
41 |
+
cfg.title = f'''<style>
|
42 |
+
img {
|
43 |
+
width: 60%;
|
44 |
+
}
|
45 |
+
</style>
|
46 |
+
<table>
|
47 |
+
<tr>
|
48 |
+
<td> <img src="https://github.com/david-oplatka/chatbot-streamlit/blob/main/Vectara-logo.png?raw=true"> </td>
|
49 |
+
<td> <h1>{cfg.title}</h1> </td>
|
50 |
+
<td> 'This demo uses Retrieval Augmented Generation to ask questions about {cfg.source_data_desc}' </td>
|
51 |
+
</tr>
|
52 |
+
</table>
|
53 |
'''
|
54 |
|
55 |
+
|
56 |
+
cfg.description = f'''<center> <h2>{cfg.description}</h2></center>'''
|
57 |
+
|
58 |
+
|
59 |
+
|
60 |
+
|
61 |
+
# cfg.title = f'''<center> <img src="https://github.com/david-oplatka/chatbot-streamlit/blob/main/Vectara-logo.png?raw=true" width="200px" height="40px">
|
62 |
+
# <h1>{cfg.title}</h1> </center>
|
63 |
+
# '''
|
64 |
+
|
65 |
+
# cfg.description = f'''<center> <h2>{cfg.description}</h2>
|
66 |
+
# <br>
|
67 |
+
# This demo uses Retrieval Augmented Generation to ask questions about {cfg.source_data_desc}</center>
|
68 |
+
# '''
|
69 |
|
70 |
if cfg.examples:
|
71 |
app_examples = [example.strip() for example in cfg.examples.split(",")]
|