Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,6 +49,9 @@ cfg.description = f'''<center> <h2>{cfg.description}</h2>
|
|
| 49 |
This demo uses Retrieval Augmented Generation to ask questions about {cfg.source_data_desc}</center>
|
| 50 |
'''
|
| 51 |
|
|
|
|
|
|
|
|
|
|
| 52 |
demo = gr.ChatInterface(respond, title = cfg.title, description = cfg.description,
|
| 53 |
chatbot = gr.Chatbot(value = [[None, "How may I help you?"]], scale=3), examples = cfg.examples)
|
| 54 |
|
|
|
|
| 49 |
This demo uses Retrieval Augmented Generation to ask questions about {cfg.source_data_desc}</center>
|
| 50 |
'''
|
| 51 |
|
| 52 |
+
if cfg.examples:
|
| 53 |
+
cfg.examples = cfg.examples.split(",")
|
| 54 |
+
|
| 55 |
demo = gr.ChatInterface(respond, title = cfg.title, description = cfg.description,
|
| 56 |
chatbot = gr.Chatbot(value = [[None, "How may I help you?"]], scale=3), examples = cfg.examples)
|
| 57 |
|