Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -46,16 +46,16 @@ cfg.description = f'''<center> <h2>{cfg.description}</h2>
|
|
46 |
This demo uses Retrieval Augmented Generation to ask questions about {cfg.source_data_desc}</center>'''
|
47 |
|
48 |
custom_css = """
|
49 |
-
.gradio-container {
|
50 |
position: relative;
|
51 |
}
|
52 |
-
.gradio-container::before {
|
53 |
content: "";
|
54 |
position: absolute;
|
55 |
-
top:
|
56 |
-
left:
|
57 |
-
width:
|
58 |
-
height:
|
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;
|
@@ -63,7 +63,6 @@ custom_css = """
|
|
63 |
}
|
64 |
"""
|
65 |
|
66 |
-
|
67 |
demo = gr.ChatInterface(respond, title = cfg.title, description = cfg.description,
|
68 |
chatbot = gr.Chatbot(value = [[None, "How may I help you?"]], scale=3), css = custom_css)
|
69 |
|
|
|
46 |
This demo uses Retrieval Augmented Generation to ask questions about {cfg.source_data_desc}</center>'''
|
47 |
|
48 |
custom_css = """
|
49 |
+
body .gradio-container {
|
50 |
position: relative;
|
51 |
}
|
52 |
+
body .gradio-container::before {
|
53 |
content: "";
|
54 |
position: absolute;
|
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;
|
|
|
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 |
|