Vikas01 commited on
Commit
bc6695c
·
1 Parent(s): cf6ad1c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -78,7 +78,7 @@ def attend():
78
  csv_writer = csv.writer(csv_file)
79
 
80
  @app.route('/at')
81
- def webcam():
82
  # Open the webcam
83
  cap = cv2.VideoCapture(0)
84
 
@@ -97,8 +97,8 @@ def webcam():
97
  cap.release()
98
  cv2.destroyAllWindows()
99
 
100
- iface = gr.Interface(fn=webcam, inputs=None, outputs=None, title="Webcam")
101
- iface.launch(share=True)
102
 
103
 
104
 
 
78
  csv_writer = csv.writer(csv_file)
79
 
80
  @app.route('/at')
81
+ def webcam(dummy):
82
  # Open the webcam
83
  cap = cv2.VideoCapture(0)
84
 
 
97
  cap.release()
98
  cv2.destroyAllWindows()
99
 
100
+ iface = gr.Interface(fn=webcam, inputs=None, outputs="text", title="Webcam")
101
+ iface.launch()
102
 
103
 
104