Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
# header = f'''
|
58 |
-
# <html>
|
59 |
-
# <body>
|
60 |
-
# <h1 style="text-align: center;">{cfg.title}</h1>
|
61 |
|
62 |
-
|
63 |
-
|
64 |
-
|
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()
|