Spaces:
Build error
Build error
jcmachicao
commited on
Commit
β’
fb425bd
1
Parent(s):
ddbfa30
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ import face_recognition
|
|
12 |
from PIL import Image
|
13 |
import numpy as np
|
14 |
import pandas as pd
|
15 |
-
import matplotlib.pyplot as plt
|
16 |
import datetime
|
17 |
import base64
|
18 |
from io import BytesIO
|
@@ -119,7 +119,7 @@ else:
|
|
119 |
csv = asist_df.to_csv(index=False)
|
120 |
st.download_button(label='π© Descargar CSV', data=csv,
|
121 |
file_name = 'df_'+timestamp+'.csv')
|
122 |
-
|
123 |
n_fig = 10
|
124 |
fig, ax = plt.subplots(1, n_fig, figsize=(21, 2))
|
125 |
for i in range(n_fig):
|
@@ -132,11 +132,12 @@ else:
|
|
132 |
ax[i].imshow(img)
|
133 |
ax[i].set_title(str(resultados_df.nombre.iloc[i]))
|
134 |
ax[i].axis('off')
|
135 |
-
|
136 |
#timestamp = str(datetime.datetime.now()).replace(':','-')
|
137 |
#plt.savefig('resultados_'+timestamp+'.jpg')
|
138 |
#st.image(Image.open('resultados_'+timestamp+'.jpg'), width=800)
|
139 |
st.pyplot(fig)
|
|
|
140 |
|
141 |
#st.write('Se ha guardado los archivos en el folder resultados.')
|
142 |
#resultados_df.to_csv('resultados/verificacion.csv')
|
|
|
12 |
from PIL import Image
|
13 |
import numpy as np
|
14 |
import pandas as pd
|
15 |
+
#import matplotlib.pyplot as plt
|
16 |
import datetime
|
17 |
import base64
|
18 |
from io import BytesIO
|
|
|
119 |
csv = asist_df.to_csv(index=False)
|
120 |
st.download_button(label='π© Descargar CSV', data=csv,
|
121 |
file_name = 'df_'+timestamp+'.csv')
|
122 |
+
'''
|
123 |
n_fig = 10
|
124 |
fig, ax = plt.subplots(1, n_fig, figsize=(21, 2))
|
125 |
for i in range(n_fig):
|
|
|
132 |
ax[i].imshow(img)
|
133 |
ax[i].set_title(str(resultados_df.nombre.iloc[i]))
|
134 |
ax[i].axis('off')
|
135 |
+
|
136 |
#timestamp = str(datetime.datetime.now()).replace(':','-')
|
137 |
#plt.savefig('resultados_'+timestamp+'.jpg')
|
138 |
#st.image(Image.open('resultados_'+timestamp+'.jpg'), width=800)
|
139 |
st.pyplot(fig)
|
140 |
+
'''
|
141 |
|
142 |
#st.write('Se ha guardado los archivos en el folder resultados.')
|
143 |
#resultados_df.to_csv('resultados/verificacion.csv')
|