cobot280pi / app.py
gursi26's picture
trying something
ef09ab9
raw
history blame
490 Bytes
import streamlit as st
import io, sys, time
from utils import *
from client import CobotController
import uuid
@st.cache_resource
def create_cobot_client():
user_id = get_user_id()
user, passwd, host, endpoint, port = get_credentials()
client = CobotController(user, passwd, host, port, endpoint, user_id)
@st.cache_resource
def get_user_id2():
return str(uuid.uuid4())
st.write(get_user_id2())
# render_log_window()
# for i in range(10):
# print(f"logger: {i}")
# time.sleep(1)