Spaces:
Sleeping
Sleeping
import streamlit as st | |
import io, sys, time | |
from utils import * | |
from client import CobotController | |
# render_log_window() | |
class StreamlitRedirector: | |
def write(self, message): | |
if message.strip(): # Avoids writing empty lines | |
st.write(message) | |
# Set up the redirection | |
sys.stdout = StreamlitRedirector() | |
user_id = get_user_id() | |
user, passwd, host, endpoint, port = get_credentials(False) | |
client = CobotController(user, passwd, host, port, endpoint, user_id) |