Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
6 views1 page

Face Recognition App

This document contains a Streamlit application that implements an auto-refreshing counter displaying 'Fizz', 'Buzz', or 'FizzBuzz' based on the count's divisibility by 3 and 5. It also reads and displays attendance data from a CSV file named with the current date. The application refreshes every 2 seconds and shows the maximum values in the attendance dataframe.

Uploaded by

nikhil.goo20
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

Face Recognition App

This document contains a Streamlit application that implements an auto-refreshing counter displaying 'Fizz', 'Buzz', or 'FizzBuzz' based on the count's divisibility by 3 and 5. It also reads and displays attendance data from a CSV file named with the current date. The application refreshes every 2 seconds and shows the maximum values in the attendance dataframe.

Uploaded by

nikhil.goo20
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

import streamlit as st

import pandas as pd
import time
from datetime import datetime

ts=time.time()
date=datetime.fromtimestamp(ts).strftime("%d-%m-%Y")
timestamp=datetime.fromtimestamp(ts).strftime("%H:%M-%S")

from streamlit_autorefresh import st_autorefresh

count = st_autorefresh(interval=2000, limit=100, key="fizzbuzzcounter")

if count == 0:
st.write("Count is zero")
elif count % 3 == 0 and count % 5 == 0:
st.write("FizzBuzz")
elif count % 3 == 0:
st.write("Fizz")
elif count % 5 == 0:
st.write("Buzz")
else:
st.write(f"Count: {count}")

df=pd.read_csv("Attendance/Attendance_" + date + ".csv")

st.dataframe(df.style.highlight_max(axis=0))

You might also like