Abu1998 commited on
Commit
e1bd894
·
verified ·
1 Parent(s): 30509b3

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +46 -0
app.py ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def wedding_media_system():
4
+ return "Welcome to the Wedding Media Management System!"
5
+
6
+ with gr.Blocks() as demo:
7
+ gr.Markdown("""
8
+ # Wedding Media Management System
9
+ A secure and interactive platform for managing wedding photos and videos.
10
+ """)
11
+
12
+ with gr.Tab("Guest Signup"):
13
+ name = gr.Textbox(label="Name")
14
+ phone = gr.Textbox(label="Phone Number")
15
+ otp_phone = gr.Button("Verify OTP")
16
+ email = gr.Textbox(label="Email")
17
+ otp_email = gr.Button("Verify OTP")
18
+ profile_pic = gr.File(label="Upload Profile Picture")
19
+ family_pic = gr.File(label="Upload Family Picture (Optional)")
20
+ password = gr.Textbox(label="Password", type="password")
21
+ submit = gr.Button("Submit")
22
+
23
+ with gr.Tab("Guest Login"):
24
+ login_name = gr.Textbox(label="Name")
25
+ login_password = gr.Textbox(label="Password", type="password")
26
+ login_btn = gr.Button("Login")
27
+
28
+ with gr.Tab("Guest Dashboard"):
29
+ gr.Markdown("### Public Gallery")
30
+ public_gallery = gr.Gallery()
31
+ my_photos = gr.Button("View My Photos")
32
+ download = gr.Button("Download Photos or Upload to Google Drive")
33
+ request_access = gr.Button("Request Access for Family Members")
34
+ logout = gr.Button("Logout")
35
+
36
+ with gr.Tab("Groom Dashboard"):
37
+ gr.Markdown("### Groom Management")
38
+ manage_gallery = gr.Button("Manage Public Gallery")
39
+ approve_requests = gr.Button("Approve Guest Requests")
40
+ tag_faces = gr.Button("Manually Identify & Tag Faces")
41
+ grant_access = gr.Button("Grant/Revoke Access Manually")
42
+ monitor_uploads = gr.Button("Monitor Photographer Uploads")
43
+ view_all_photos = gr.Button("View All Uploaded Photos")
44
+ groom_logout = gr.Button("Logout")
45
+
46
+ demo.launch()