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:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user