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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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) - 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! πŸŒπŸ“‹
@@ -570,7 +570,7 @@ def main():
570
  font_name, font_func = random.choice(UNICODE_FONTS)
571
  countdown_str = "".join(UNICODE_DIGITS[int(d)] for d in str(i)) if i < 10 else font_func(str(i))
572
  timer_placeholder.markdown(f"<p class='timer'>⏳ {font_func('Refresh in:')} {countdown_str}</p>", unsafe_allow_html=True)
573
- await asyncio.sleep(1)
574
  st.rerun()
575
 
576
  st.sidebar.subheader("Chat History πŸ“œ")
 
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)), # Fixed to add offset
102
+ ("Regional Indicator", lambda x: "".join(chr(ord(c) - 0x41 + 0x1F1E6) if 'A' <= c <= 'Z' else c for c in x)), # Fixed to add offset
103
  ]
104
 
105
  # Global state - keeping tabs! πŸŒπŸ“‹
 
570
  font_name, font_func = random.choice(UNICODE_FONTS)
571
  countdown_str = "".join(UNICODE_DIGITS[int(d)] for d in str(i)) if i < 10 else font_func(str(i))
572
  timer_placeholder.markdown(f"<p class='timer'>⏳ {font_func('Refresh in:')} {countdown_str}</p>", unsafe_allow_html=True)
573
+ time.sleep(1) # Use synchronous sleep instead of asyncio.sleep
574
  st.rerun()
575
 
576
  st.sidebar.subheader("Chat History πŸ“œ")