Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def upload():
|
|
24 |
# Process the image using your attendance model
|
25 |
data = predict_and_show(file)
|
26 |
|
27 |
-
return send_file(pd.DataFrame(data,
|
28 |
|
29 |
|
30 |
if __name__ == '__main__':
|
|
|
24 |
# Process the image using your attendance model
|
25 |
data = predict_and_show(file)
|
26 |
|
27 |
+
return send_file(pd.DataFrame(data,columns=["Name"]).to_csv("attachment.csv",index = False), as_attachment=True)
|
28 |
|
29 |
|
30 |
if __name__ == '__main__':
|