Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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=
|
101 |
-
iface.launch(
|
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 |
|