File size: 434 Bytes
be196d0
68cb778
2e1ca7b
0078aeb
2e1ca7b
 
0078aeb
2e1ca7b
 
 
 
 
 
 
 
68cb778
2e1ca7b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)