Spaces:
Sleeping
Sleeping
import streamlit as st | |
from config import CONTRIBUTORS | |
def contributors_page(): | |
st.balloons() | |
with open("assets/members_list.txt", "r", encoding="utf-16") as f: | |
data = f.readlines() | |
full_string = "" | |
for i in range(0,len(data),3): | |
contributors = f"""<tr> | |
<td>{data[i].strip().title()}</td> | |
<td>{data[i+1].strip().title()}</td> | |
<td>{data[i+2].strip().title()}</td> | |
</tr> | |
""" | |
full_string += contributors | |
st.write(CONTRIBUTORS.format(full_string), unsafe_allow_html=True) | |
if __name__ == "__main__": | |
contributors_page() |