Spaces:
Running
Running
Update static/script.js
Browse files- static/script.js +1 -1
static/script.js
CHANGED
@@ -57,7 +57,7 @@ sendButton.addEventListener('click', () => {
|
|
57 |
const message = chatInput.value.trim();
|
58 |
if (message) {
|
59 |
appendMessage(message, 'user');
|
60 |
-
socket.emit('message', { question: message, session_id: 'abc123' });
|
61 |
chatInput.value = '';
|
62 |
response = "";
|
63 |
} else {
|
|
|
57 |
const message = chatInput.value.trim();
|
58 |
if (message) {
|
59 |
appendMessage(message, 'user');
|
60 |
+
socket.emit('message', { question: message, language="en", session_id: 'abc123' });
|
61 |
chatInput.value = '';
|
62 |
response = "";
|
63 |
} else {
|