Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,11 +42,23 @@ def respond(message, history):
|
|
42 |
response = vq.submit_query(message)
|
43 |
yield response
|
44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
cfg.title = f'''<h1 style="text-align: center;">{cfg.title}</h1>'''
|
46 |
|
47 |
cfg.description = f'''<h2 style="text-align: center;">{cfg.description}</h2>'''
|
48 |
|
49 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
|
51 |
if __name__ == "__main__":
|
52 |
demo.launch()
|
|
|
42 |
response = vq.submit_query(message)
|
43 |
yield response
|
44 |
|
45 |
+
# cfg.title = f'''<h1 style="text-align: center;">{cfg.title}</h1>'''
|
46 |
+
|
47 |
+
# cfg.description = f'''<h2 style="text-align: center;">{cfg.description}</h2>'''
|
48 |
+
|
49 |
+
# demo = gr.ChatInterface(respond, title = cfg.title, description = cfg.description, chatbot = gr.Chatbot(value = [[None, "How may I help you?"]]))
|
50 |
+
|
51 |
cfg.title = f'''<h1 style="text-align: center;">{cfg.title}</h1>'''
|
52 |
|
53 |
cfg.description = f'''<h2 style="text-align: center;">{cfg.description}</h2>'''
|
54 |
|
55 |
+
header = f'''
|
56 |
+
<h1 style="text-align: center;">{cfg.title}</h1>
|
57 |
+
|
58 |
+
<h2 style="text-align: center;">{cfg.description}</h2>
|
59 |
+
'''
|
60 |
+
|
61 |
+
demo = gr.ChatInterface(respond, chatbot = gr.Chatbot(value = [[None, "How may I help you?"]]), head = header)
|
62 |
|
63 |
if __name__ == "__main__":
|
64 |
demo.launch()
|