Spaces:
Sleeping
Sleeping
neerajkalyank
commited on
Commit
•
f9eb1c7
1
Parent(s):
6afa05d
Update app.py
Browse files
app.py
CHANGED
@@ -51,11 +51,11 @@ with gr.Blocks() as app:
|
|
51 |
name = gr.Textbox(label="Patient Name", placeholder="Enter patient name", elem_id="name_field", lines=1)
|
52 |
father_name = gr.Textbox(label="Father/Husband Name", placeholder="Enter father or husband name", elem_id="father_name_field", lines=1)
|
53 |
with gr.Row():
|
54 |
-
age = gr.Number(label="Age", value=None, minimum=0, maximum=99, elem_id="age_field"
|
55 |
-
phone = gr.Number(label="Phone Number", value=None, elem_id="phone_field"
|
56 |
with gr.Row():
|
57 |
address = gr.Textbox(label="Address", placeholder="Enter address", lines=2)
|
58 |
-
pincode = gr.Number(label="Pincode", value=None, elem_id="pincode_field"
|
59 |
register_button = gr.Button("Register Patient")
|
60 |
registration_output = gr.Textbox(label="Registration Output")
|
61 |
|
@@ -83,19 +83,19 @@ with gr.Blocks() as app:
|
|
83 |
# Custom CSS to adjust field sizes
|
84 |
app.css = """
|
85 |
#name_field, #father_name_field {
|
86 |
-
max-width:
|
87 |
}
|
88 |
|
89 |
#age_field {
|
90 |
-
max-width:
|
91 |
}
|
92 |
|
93 |
#phone_field {
|
94 |
-
max-width:
|
95 |
}
|
96 |
|
97 |
#pincode_field {
|
98 |
-
max-width:
|
99 |
}
|
100 |
"""
|
101 |
|
|
|
51 |
name = gr.Textbox(label="Patient Name", placeholder="Enter patient name", elem_id="name_field", lines=1)
|
52 |
father_name = gr.Textbox(label="Father/Husband Name", placeholder="Enter father or husband name", elem_id="father_name_field", lines=1)
|
53 |
with gr.Row():
|
54 |
+
age = gr.Number(label="Age", value=None, minimum=0, maximum=99, elem_id="age_field")
|
55 |
+
phone = gr.Number(label="Phone Number", value=None, elem_id="phone_field")
|
56 |
with gr.Row():
|
57 |
address = gr.Textbox(label="Address", placeholder="Enter address", lines=2)
|
58 |
+
pincode = gr.Number(label="Pincode", value=None, elem_id="pincode_field")
|
59 |
register_button = gr.Button("Register Patient")
|
60 |
registration_output = gr.Textbox(label="Registration Output")
|
61 |
|
|
|
83 |
# Custom CSS to adjust field sizes
|
84 |
app.css = """
|
85 |
#name_field, #father_name_field {
|
86 |
+
max-width: 750px;
|
87 |
}
|
88 |
|
89 |
#age_field {
|
90 |
+
max-width: 300px;
|
91 |
}
|
92 |
|
93 |
#phone_field {
|
94 |
+
max-width: 1100px;
|
95 |
}
|
96 |
|
97 |
#pincode_field {
|
98 |
+
max-width: 400px;
|
99 |
}
|
100 |
"""
|
101 |
|