david-oplatka commited on
Commit
3c4dfb1
·
verified ·
1 Parent(s): 5e24b52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -14
app.py CHANGED
@@ -49,22 +49,19 @@ 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))
56
-
57
- # header = f'''
58
- # <html>
59
- # <body>
60
- # <h1 style="text-align: center;">{cfg.title}</h1>
61
 
62
- # <h2 style="text-align: center;">{cfg.description}</h2>
63
- # </body>
64
- # </html>
65
- # '''
 
 
 
66
 
67
- # demo = gr.ChatInterface(respond, chatbot = gr.Chatbot(value = [[None, "How may I help you?"]]), head = header)
68
 
69
  if __name__ == "__main__":
70
  demo.launch()
 
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))
 
 
 
 
 
56
 
57
+ with gr.Blocks() as demo:
58
+ with gr.Row():
59
+ gr.HTML(image_html)
60
+ gr.HTML(cfg.title)
61
+ gr.HTML(cfg.description)
62
+ chatbot = gr.Chatbot(value=[[None, "How may I help you?"]], scale=3)
63
+ gr.ChatInterface(respond, chatbot=chatbot)
64
 
 
65
 
66
  if __name__ == "__main__":
67
  demo.launch()