Ali2206 commited on
Commit
d8b536c
·
verified ·
1 Parent(s): a957349

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -33,7 +33,6 @@ def create_doctor(full_name, email, matricule, password, specialty):
33
  "specialty": specialty,
34
  }
35
  try:
36
- # Updated endpoint to match the actual route in auth.py
37
  res = requests.post(f"{BACKEND_URL}/auth/admin/doctors", json=payload)
38
  if res.status_code == 201: # Status code for successful creation
39
  return "✅ Doctor created successfully!"
@@ -108,7 +107,7 @@ with gr.Blocks(css="""
108
  }
109
  """) as admin_ui:
110
  gr.Markdown("<div class='title-text'>👨‍⚕️ Doctor Account Creator</div>")
111
- gr.Markdown("<div class='description-text'>Admins can register new doctors using this secure panel. Generated at 05:44 PM CET on Friday, May 16, 2025.</div>")
112
 
113
  with gr.Column():
114
  full_name = gr.Textbox(label="Full Name", placeholder="e.g. Dr. Sarah Hopkins")
 
33
  "specialty": specialty,
34
  }
35
  try:
 
36
  res = requests.post(f"{BACKEND_URL}/auth/admin/doctors", json=payload)
37
  if res.status_code == 201: # Status code for successful creation
38
  return "✅ Doctor created successfully!"
 
107
  }
108
  """) as admin_ui:
109
  gr.Markdown("<div class='title-text'>👨‍⚕️ Doctor Account Creator</div>")
110
+ gr.Markdown("<div class='description-text'>Admins can register new doctors using this secure panel. Generated at 05:47 PM CET on Friday, May 16, 2025.</div>")
111
 
112
  with gr.Column():
113
  full_name = gr.Textbox(label="Full Name", placeholder="e.g. Dr. Sarah Hopkins")