import streamlit as st import uuid import os # File to store the UUID uuid_file = "uuid.txt" # Check if the UUID is already saved, otherwise generate and save it if os.path.exists(uuid_file): with open(uuid_file, "r") as file: saved_uuid = file.read().strip() else: saved_uuid = str(uuid.uuid4()) with open(uuid_file, "w") as file: file.write(saved_uuid) st.text_input("Your Textbox", value=saved_uuid)