cobot280pi / app.py
gursi26's picture
trying something
1eb1bd0
raw
history blame
484 Bytes
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)