Spaces:
Runtime error
Runtime error
updated startup message
Browse files- static/chatbot.js +2 -1
- utils.py +1 -1
static/chatbot.js
CHANGED
|
@@ -71,7 +71,8 @@ $(document).ready(function() {
|
|
| 71 |
});
|
| 72 |
|
| 73 |
// Initial message
|
| 74 |
-
displayMessage('
|
|
|
|
| 75 |
|
| 76 |
// Function to minimize the widget
|
| 77 |
function minimizeWidget() {
|
|
|
|
| 71 |
});
|
| 72 |
|
| 73 |
// Initial message
|
| 74 |
+
displayMessage('Learn about <a href="https://www.coursera.org/learn/3d-printing-revolution/home">3D printing Revolution</a> course with referred sources');
|
| 75 |
+
|
| 76 |
|
| 77 |
// Function to minimize the widget
|
| 78 |
function minimizeWidget() {
|
utils.py
CHANGED
|
@@ -111,7 +111,7 @@ def generate_answer(question) -> str:
|
|
| 111 |
sources.append(source.split('/')[-1].split('.')[0])
|
| 112 |
|
| 113 |
source = ',\n'.join(set(sources))
|
| 114 |
-
return result['answer'] + '\
|
| 115 |
|
| 116 |
|
| 117 |
def get_agent_chain(prompt, tools):
|
|
|
|
| 111 |
sources.append(source.split('/')[-1].split('.')[0])
|
| 112 |
|
| 113 |
source = ',\n'.join(set(sources))
|
| 114 |
+
return result['answer'] + '\nSOURCES: ' + source
|
| 115 |
|
| 116 |
|
| 117 |
def get_agent_chain(prompt, tools):
|