Spaces:
Build error
Build error
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
with gr.Blocks(title="Lab Rat App") as demo:
|
| 4 |
+
with open("sharelinks.txt","r") as f:
|
| 5 |
+
lines=f.readlines()
|
| 6 |
+
accountcreationlink=lines[0]
|
| 7 |
+
mainstudentapp=lines[1]
|
| 8 |
+
adultapprover=lines[2]
|
| 9 |
+
|
| 10 |
+
gr.Markdown("Create Account")
|
| 11 |
+
createbtn=gr.Button(value="Create Student Account",link=accountcreationlink)
|
| 12 |
+
gr.Markdown()
|
| 13 |
+
gr.Markdown("Student Login - Full App")
|
| 14 |
+
studentbtn=gr.Button(value="Student Login - Full App",link=mainstudentapp)
|
| 15 |
+
gr.Markdown()
|
| 16 |
+
gr.Markdown("Parent Login - Parent Approval")
|
| 17 |
+
parentbtn=gr.Button(value="Parent Login - Parent Approval",link=mainstudentapp)
|
| 18 |
+
gr.Markdown()
|
| 19 |
+
gr.Markdown("Teacher, Fair Admin, Qualified Scientist, Designated Supervisor, SCR, and IRB")
|
| 20 |
+
parentbtn=gr.Button(value="Adult Approver Login",link=adultapprover)
|
| 21 |
+
gr.Markdown()
|
| 22 |
+
|
| 23 |
+
if __name__ == "__main__":
|
| 24 |
+
demo.queue(max_size=30,api_open=False,concurrency_count=10).launch(share=True,show_error=False,favicon_path="C:\\Users\\mlevy\\OneDrive - Roanoke City Public Schools\\Desktop\\LabRat\\favicon.ico")
|