Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jumitti committed May 2, 2024
1 parent dddd999 commit 679aefc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions TFinder-v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,13 @@ def load_lottiefile(filepath: str):

# streamlit_analytics.stop_tracking()
# views = streamlit_analytics.main.counts["total_pageviews"]
local_test = platform.processor()
if local_test == "":
unique_users = st.secrets['unique_users']
st.sidebar.markdown(f"Unique users 👥: {unique_users}")
st.session_state["LOCAL"] = 'False'
else:
try:
local_test = platform.processor()
if local_test == "":
unique_users = st.secrets['unique_users']
st.sidebar.markdown(f"Unique users 👥: {unique_users}")
st.session_state["LOCAL"] = 'False'
except Exception as e:
st.session_state["LOCAL"] = 'True'
st.sidebar.markdown(f"TFinder Local Version")

Expand Down
2 changes: 1 addition & 1 deletion clock.time
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Last updated at 14:21 on 2023-11-06
Last updated at 09:04 on 2024-05-02

0 comments on commit 679aefc

Please sign in to comment.