File size: 2,096 Bytes
765b9dd
 
50f1be3
 
765b9dd
 
 
 
 
 
2fe5905
765b9dd
7f857e9
 
d4c3766
e8b7352
 
fcf5ab0
e8b7352
2fe5905
e8b7352
d61ed96
2f927d0
e8b7352
fcf5ab0
e8b7352
 
 
 
 
d4c3766
765b9dd
0047a35
9b63e6b
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
36
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="https://www.labrat.live")
            gr.Markdown("Lab Rat Lite App not yet available. Only use the Lab Rat Lite app 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.queue(max_size=30,api_open=False).launch(share=True,show_error=False)
    demo.queue(max_size=30,api_open=False).launch(share=True)