ImanAmran commited on
Commit
f4a6ecd
1 Parent(s): 928abd4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -58,18 +58,19 @@ def recognize_user(image):
58
  def main():
59
  with gr.Blocks() as demo:
60
  gr.Markdown("Facial Recognition System")
 
61
  with gr.Tab("Register"):
62
  with gr.Row():
63
  img_register = gr.Image()
64
  user_id = gr.Textbox(label="User ID")
65
- register_button = gr.Button("Register")
66
  register_output = gr.Textbox()
67
  register_button.click(register_user, inputs=[img_register, user_id], outputs=register_output)
68
 
69
  with gr.Tab("Recognize"):
70
  with gr.Row():
71
  img_recognize = gr.Image()
72
- recognize_button = gr.Button("Recognize")
73
  recognize_output = gr.Textbox()
74
  recognize_button.click(recognize_user, inputs=[img_recognize], outputs=recognize_output)
75
 
 
58
  def main():
59
  with gr.Blocks() as demo:
60
  gr.Markdown("Facial Recognition System")
61
+
62
  with gr.Tab("Register"):
63
  with gr.Row():
64
  img_register = gr.Image()
65
  user_id = gr.Textbox(label="User ID")
66
+ register_button = gr.Button("Register", style={"background-color": "orange", "color": "white"})
67
  register_output = gr.Textbox()
68
  register_button.click(register_user, inputs=[img_register, user_id], outputs=register_output)
69
 
70
  with gr.Tab("Recognize"):
71
  with gr.Row():
72
  img_recognize = gr.Image()
73
+ recognize_button = gr.Button("Recognize", style={"background-color": "orange", "color": "white"})
74
  recognize_output = gr.Textbox()
75
  recognize_button.click(recognize_user, inputs=[img_recognize], outputs=recognize_output)
76