Spaces:
Running
Running
Update index.html
Browse files- 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 |
-
|
|
|
|
| 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";
|