File size: 1,995 Bytes
765b9dd
 
50f1be3
 
765b9dd
 
 
 
 
 
2fe5905
765b9dd
7f857e9
 
d4c3766
e8b7352
 
ad3c3d0
e8b7352
2fe5905
e8b7352
431b6b7
93498db
1f24aea
fcf5ab0
e8b7352
 
 
 
 
d4c3766
765b9dd
51665a3
0047a35
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import gradio as gr

#

with gr.Blocks(title="Lab Rat App") as demo:
    with open("sharelinks.txt","r") as f:
        lines=f.readlines()
    accountcreationlink=lines[0]
    mainstudentapp=lines[1]
    adultapprover=lines[2]
    labratlite=lines[3]

    gr.Image(value="Lab Rat.png",show_label=False,)    
    gr.Label(value="Lab Rat App Launch Pad",show_label=False, color="#D6D6D6")
    gr.Markdown("### When using this app, you will only navigate using the buttons in the app - do not click the back button on your browser.\n### Clicking the refresh button will reset the page and bring you back to the login screen. Any unsaved progress will be lost, so be sure to save before hitting refresh or before closing the window")
    with gr.Row():
        with gr.Column():
            gr.Label(value="Student Accounts and Parent Approval",show_label=False)
            createbtn=gr.Button(value="Create Student Account",link=accountcreationlink)
            studentbtn=gr.Button(value="Student Login - Full App",link=mainstudentapp)
            parentbtn=gr.Button(value="Parent Approval",link=mainstudentapp)
            studentlitebtn=gr.Button(value="Lab Rat Lite Student Login *",link=labratlite)
            gr.Markdown("* The Lab Rat Lite app does not have full capacity to store your information. Only use the Lite version if instructed to do so by your teacher")
        with gr.Column():#
            gr.Label(value="School Staff, Mentors, and External Approvers",show_label=False,)
            teacherbtn=gr.Button(value="Teacher Login",link=adultapprover)
            adminbtn=gr.Button(value="Fair Admin Login",link=adultapprover)
            qsdsbtn=gr.Button(value="Qualified Scientist and Designated Supervisor Login",link=adultapprover)
            srcbtn=gr.Button(value="Scientific Review Committee (SRC) Login",link=adultapprover)
            irbbtn=gr.Button(value="Institutional Review Board (IRB) Login",link=adultapprover)

if __name__ == "__main__":
    demo.launch()