brestok commited on
Commit
1d7750a
1 Parent(s): d2436fd

Update static/js/main.js

Browse files
Files changed (1) hide show
  1. static/js/main.js +1 -1
static/js/main.js CHANGED
@@ -28,7 +28,7 @@ function adjustChatBodyHeight() {
28
  function openChatBotWindow() {
29
  let lastScrollHeight = chatBody.scrollHeight;
30
  const uuid = generateUUID()
31
- socket = new WebSocket(`ws://127.0.0.1:8000/ws/${uuid}`);
32
  socket.onclose = (event) => console.log('WebSocket disconnected', event);
33
  socket.onerror = (error) => {
34
  alert('Something was wrong. Try again later.')
 
28
  function openChatBotWindow() {
29
  let lastScrollHeight = chatBody.scrollHeight;
30
  const uuid = generateUUID()
31
+ socket = new WebSocket(`wss://brestok-javeaai.hf.space/ws/${uuid}`);
32
  socket.onclose = (event) => console.log('WebSocket disconnected', event);
33
  socket.onerror = (error) => {
34
  alert('Something was wrong. Try again later.')