Chore: appropos removed constants

Removed redundant code level constatnt with repo based runtime_urls.py
Added run-master, run-worker.sh scripts for convinient clean, builds
This commit is contained in:
2026-05-23 19:20:18 +05:45
parent 7b685d3580
commit 38ddcb5d4d
34 changed files with 411 additions and 189 deletions
+4 -5
View File
@@ -1,11 +1,10 @@
import streamlit as st
import requests
import socketio
import os
# Base URL pulled from environment variable
BASE_URL = os.getenv("SOCKET_SERVER_URL", "http://172.17.0.1:6001")
API_URL = f"{BASE_URL}/api/connected_clients"
from runtime_urls import WEBSOCKET_SERVER_URL
API_URL = f"{WEBSOCKET_SERVER_URL}/api/connected_clients"
def load_clients():
response = requests.get(API_URL)
@@ -16,7 +15,7 @@ def load_clients():
def render():
# Initialize SocketIO client
sio = socketio.Client()
sio.connect(BASE_URL)
sio.connect(WEBSOCKET_SERVER_URL)
st.title("Connected Clients")