Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,15 +55,14 @@ cfg.description = f'''<center> <h2>{cfg.description}</h2>
|
|
| 55 |
'''
|
| 56 |
|
| 57 |
if cfg.examples:
|
| 58 |
-
|
| 59 |
-
cfg.examples = [example.strip() for example in cfg.examples.split(",")]
|
| 60 |
else:
|
| 61 |
-
|
| 62 |
|
| 63 |
-
logging.debug(f'Examples before function call: {
|
| 64 |
|
| 65 |
demo = gr.ChatInterface(respond, title = cfg.title, description = cfg.description,
|
| 66 |
-
chatbot = gr.Chatbot(value = [[None, "How may I help you?"]], scale=3), examples =
|
| 67 |
|
| 68 |
|
| 69 |
if __name__ == "__main__":
|
|
|
|
| 55 |
'''
|
| 56 |
|
| 57 |
if cfg.examples:
|
| 58 |
+
app_examples = [example.strip() for example in cfg.examples.split(",")]
|
|
|
|
| 59 |
else:
|
| 60 |
+
app_examples = None
|
| 61 |
|
| 62 |
+
logging.debug(f'Examples before function call: {app_examples}; type: {type(app_examples)}')
|
| 63 |
|
| 64 |
demo = gr.ChatInterface(respond, title = cfg.title, description = cfg.description,
|
| 65 |
+
chatbot = gr.Chatbot(value = [[None, "How may I help you?"]], scale=3), examples = app_examples)
|
| 66 |
|
| 67 |
|
| 68 |
if __name__ == "__main__":
|