Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -45,25 +45,13 @@ cfg.description = f'''<center> <h2>{cfg.description}</h2>
|
|
45 |
<br>
|
46 |
This demo uses Retrieval Augmented Generation to ask questions about {cfg.source_data_desc}</center>'''
|
47 |
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
top: 10px;
|
56 |
-
left: 10px;
|
57 |
-
width: 100px;
|
58 |
-
height: 50px;
|
59 |
-
background-image: url('https://github.com/david-oplatka/chatbot-streamlit/blob/main/Vectara-logo.png');
|
60 |
-
background-size: contain;
|
61 |
-
background-repeat: no-repeat;
|
62 |
-
z-index: 1000;
|
63 |
-
}
|
64 |
-
"""
|
65 |
-
|
66 |
-
demo = gr.ChatInterface(respond, title = cfg.title, description = cfg.description,
|
67 |
chatbot = gr.Chatbot(value = [[None, "How may I help you?"]], scale=3), css = custom_css)
|
68 |
|
69 |
# header = f'''
|
|
|
45 |
<br>
|
46 |
This demo uses Retrieval Augmented Generation to ask questions about {cfg.source_data_desc}</center>'''
|
47 |
|
48 |
+
image_html = '''
|
49 |
+
<img src="https://github.com/david-oplatka/chatbot-streamlit/blob/main/Vectara-logo.png" style="float:left; width:100px; height:50px; margin-right:20px;">
|
50 |
+
'''
|
51 |
+
|
52 |
+
with gr.Blocks() as demo:
|
53 |
+
gr.HTML()
|
54 |
+
gr.ChatInterface(respond, title = cfg.title, description = cfg.description,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
chatbot = gr.Chatbot(value = [[None, "How may I help you?"]], scale=3), css = custom_css)
|
56 |
|
57 |
# header = f'''
|