Update app.py
Browse files
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 |
-
|
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 π")
|