SamSak09 commited on
Commit
2d582d3
·
verified ·
1 Parent(s): fece35b

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +2 -1
index.html CHANGED
@@ -189,7 +189,8 @@
189
  // --- 5. WEBSOCKET PIPELINE ---
190
  const socketStatus = document.getElementById('socket-status');
191
  const statusText = document.getElementById('status');
192
- const ws = new WebSocket('wss://immodestly-tenacious-kraig.ngrok-free.dev/api/generate_stream');
 
193
 
194
  ws.onopen = () => {
195
  socketStatus.innerHTML = "🟢 Live TCP Connection";
 
189
  // --- 5. WEBSOCKET PIPELINE ---
190
  const socketStatus = document.getElementById('socket-status');
191
  const statusText = document.getElementById('status');
192
+ // This automatically grabs the current Hugging Face URL and connects securely
193
+ const ws = new WebSocket('wss://' + window.location.host + '/api/generate_stream');
194
 
195
  ws.onopen = () => {
196
  socketStatus.innerHTML = "🟢 Live TCP Connection";