david-oplatka commited on
Commit
3c20b70
·
verified ·
1 Parent(s): 6b42826

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -19
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
- 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;
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'''