File size: 635 Bytes
6b48a2c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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()