dramit80 commited on
Commit
9ae5497
·
verified ·
1 Parent(s): 917054c

Delete deepseek_python_20251016_c5ba10.py

Browse files
Files changed (1) hide show
  1. deepseek_python_20251016_c5ba10.py +0 -99
deepseek_python_20251016_c5ba10.py DELETED
@@ -1,99 +0,0 @@
1
- import gradio as gr
2
- import pandas as pd
3
- from datetime import datetime
4
-
5
- # Student Data Management
6
- def add_student(name, grade, roll_no, parent_phone):
7
- timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
8
- new_student = {
9
- "Name": name,
10
- "Grade": grade,
11
- "Roll_No": roll_no,
12
- "Parent_Phone": parent_phone,
13
- "Added_On": timestamp
14
- }
15
- return f"✅ विद्यार्थी नोंदणी झाली: {name}"
16
-
17
- def add_teacher(name, subject, phone, qualifications):
18
- timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
19
- new_teacher = {
20
- "Name": name,
21
- "Subject": subject,
22
- "Phone": phone,
23
- "Qualifications": qualifications,
24
- "Joined_On": timestamp
25
- }
26
- return f"✅ शिक्षक नोंदणी झाली: {name}"
27
-
28
- # Search Functions
29
- def search_student(name):
30
- # यात तुमचा data शोधण्याचा code येईल
31
- return f"🔍 {name} ची माहिती सापडली"
32
-
33
- def search_teacher(name):
34
- # यात तुमचा data शोधण्याचा code येईल
35
- return f"🔍 {name} शिक्षकाची माहिती सापडली"
36
-
37
- # Gradio Interface
38
- with gr.Blocks(theme=gr.themes.Soft(), title="शाळा डेटा व्यवस्थापन") as app:
39
- gr.Markdown("# 🏫 माझी शाळा - डेटा व्यवस्थापन")
40
-
41
- with gr.Tab("📚 विद्यार्थी नोंदणी"):
42
- with gr.Row():
43
- with gr.Column():
44
- student_name = gr.Textbox(label="विद्यार्थ्याचे नाव")
45
- student_grade = gr.Dropdown(["1ली", "2री", "3री", "4थी", "5वी", "6वी", "7वी", "8वी", "9वी", "10वी"], label="इयत्ता")
46
- roll_no = gr.Number(label="रोल नंबर")
47
- parent_phone = gr.Textbox(label="पालकांचा मोबाइल नंबर")
48
- add_student_btn = gr.Button("विद्यार्थी नोंदवा")
49
- with gr.Column():
50
- student_output = gr.Textbox(label="निकाल")
51
-
52
- with gr.Tab("👨‍🏫 शिक्षक नोंदणी"):
53
- with gr.Row():
54
- with gr.Column():
55
- teacher_name = gr.Textbox(label="शिक्षकाचे नाव")
56
- teacher_subject = gr.Dropdown(["मराठी", "हिंदी", "इंग्रजी", "गणित", "विज्ञान", "सामाजिक शास्त्र", "इतिहास", "भूगोल"], label="विषय")
57
- teacher_phone = gr.Textbox(label="मोबाइल नंबर")
58
- teacher_qualifications = gr.Textbox(label="पात्रता")
59
- add_teacher_btn = gr.Button("शिक्षक नोंदवा")
60
- with gr.Column():
61
- teacher_output = gr.Textbox(label="निकाल")
62
-
63
- with gr.Tab("🔍 माहिती शोधा"):
64
- with gr.Row():
65
- with gr.Column():
66
- search_student_name = gr.Textbox(label="विद्यार्थ्याचे नाव शोधा")
67
- search_student_btn = gr.Button("विद्यार्थी शोधा")
68
- with gr.Column():
69
- search_teacher_name = gr.Textbox(label="शिक्षकाचे नाव शोधा")
70
- search_teacher_btn = gr.Button("शिक्षक शोधा")
71
- search_output = gr.Textbox(label="शोध निकाल")
72
-
73
- # Button Clicks
74
- add_student_btn.click(
75
- add_student,
76
- inputs=[student_name, student_grade, roll_no, parent_phone],
77
- outputs=student_output
78
- )
79
-
80
- add_teacher_btn.click(
81
- add_teacher,
82
- inputs=[teacher_name, teacher_subject, teacher_phone, teacher_qualifications],
83
- outputs=teacher_output
84
- )
85
-
86
- search_student_btn.click(
87
- search_student,
88
- inputs=[search_student_name],
89
- outputs=search_output
90
- )
91
-
92
- search_teacher_btn.click(
93
- search_teacher,
94
- inputs=[search_teacher_name],
95
- outputs=search_output
96
- )
97
-
98
- if __name__ == "__main__":
99
- app.launch()