awacke1 commited on
Commit
81acf2f
Β·
verified Β·
1 Parent(s): 8066412

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -98,8 +98,8 @@ UNICODE_FONTS = [
98
  ("Circled", lambda x: "".join(chr(ord(c) - 0x41 + 0x24B6) if 'A' <= c <= 'Z' else chr(ord(c) - 0x61 + 0x24D0) if 'a' <= c <= 'z' else c for c in x)),
99
  ("Squared", lambda x: "".join(chr(ord(c) - 0x41 + 0x1F130) if 'A' <= c <= 'Z' else c for c in x)),
100
  ("Negative Circled", lambda x: "".join(chr(ord(c) - 0x41 + 0x1F150) if 'A' <= c <= 'Z' else c for c in x)),
101
- ("Negative Squared", lambda x: "".join(chr(ord(c) - 0x41 + 0x1F170) if 'A' <= c <= 'Z' else c for c in x)),
102
- ("Regional Indicator", lambda x: "".join(chr(ord(c) - 0x41 + 0x1F1E6) if 'A' <= c <= 'Z' else c for c in x)),
103
  ]
104
 
105
  # Global state - keeping tabs! πŸŒπŸ“‹
@@ -127,6 +127,8 @@ if 'pasted_image_data' not in st.session_state:
127
  st.session_state.pasted_image_data = None
128
  if 'quote_line' not in st.session_state:
129
  st.session_state.quote_line = None
 
 
130
 
131
  # Timestamp wizardry - clock ticks with flair! ⏰🎩
132
  def format_timestamp_prefix():
 
98
  ("Circled", lambda x: "".join(chr(ord(c) - 0x41 + 0x24B6) if 'A' <= c <= 'Z' else chr(ord(c) - 0x61 + 0x24D0) if 'a' <= c <= 'z' else c for c in x)),
99
  ("Squared", lambda x: "".join(chr(ord(c) - 0x41 + 0x1F130) if 'A' <= c <= 'Z' else c for c in x)),
100
  ("Negative Circled", lambda x: "".join(chr(ord(c) - 0x41 + 0x1F150) if 'A' <= c <= 'Z' else c for c in x)),
101
+ ("Negative Squared", lambda x: "".join(chr(ord(c) - 0x1F170) if 'A' <= c <= 'Z' else c for c in x)),
102
+ ("Regional Indicator", lambda x: "".join(chr(ord(c) - 0x1F1E6) if 'A' <= c <= 'Z' else c for c in x)),
103
  ]
104
 
105
  # Global state - keeping tabs! πŸŒπŸ“‹
 
127
  st.session_state.pasted_image_data = None
128
  if 'quote_line' not in st.session_state:
129
  st.session_state.quote_line = None
130
+ if 'refresh_rate' not in st.session_state:
131
+ st.session_state.refresh_rate = 5 # Default refresh rate
132
 
133
  # Timestamp wizardry - clock ticks with flair! ⏰🎩
134
  def format_timestamp_prefix():