Vikas01 commited on
Commit
27453a0
·
1 Parent(s): dae735b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -8
app.py CHANGED
@@ -82,18 +82,16 @@ def run_face_recognition():
82
 
83
  img_file_buffer=st.camera_input("Take a picture")
84
  if img_file_buffer is not None:
85
- st.write("data ")
86
- test_image=Image.open(img_file_buffer)
87
- st.image(test_image)
88
-
89
- if bytes_data is None:
90
- st.write("nothing")
91
- st.stop()
92
 
93
  # Call the function to run face recognition
94
 
95
 
96
- return redirect(url_for('show_table'))
97
 
98
  @app.route('/table')
99
  def show_table():
 
82
 
83
  img_file_buffer=st.camera_input("Take a picture")
84
  if img_file_buffer is not None:
85
+ # To read image file buffer as bytes:
86
+ bytes_data = img_file_buffer.getvalue()
87
+ # Check the type of bytes_data:
88
+ # Should output: <class 'bytes'>
89
+ st.write(type(bytes_data))
 
 
90
 
91
  # Call the function to run face recognition
92
 
93
 
94
+ # return redirect(url_for('show_table'))
95
 
96
  @app.route('/table')
97
  def show_table():