Speaker-Diarization / utils /streamlit_utils.py
philippemos's picture
add script for speaker diarization demo
4ba35bc
raw
history blame contribute delete
266 Bytes
from streamlit.scriptrunner import get_script_run_ctx as get_report_ctx
def get_session() -> str:
"""
Function that returns a unique identifier per user session
"""
session_id = get_report_ctx().session_id.replace('-', '_')
return session_id