Spaces:
Sleeping
Sleeping
File size: 484 Bytes
be196d0 fafda87 2554ae8 ef09ab9 0078aeb 1eb1bd0 0078aeb ef09ab9 4be4378 1eb1bd0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
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) |