Spaces:
Runtime error
Runtime error
parthasonu505
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -92,9 +92,9 @@ if st.session_state.go:
|
|
92 |
st.session_state.df.loc[st.session_state.df.Code == ipcode, 'Picture'] =f"Photo_{ipclass}_{ipsection}_{ipcode}_{ipname}.jpg"
|
93 |
ippic=f"Photo_{ipclass}_{ipsection}_{ipcode}_{ipname}.jpg"
|
94 |
print("Picture name: ",ippic)
|
95 |
-
session = ftplib.FTP('ftp.digidemy.in','u669719505.partha','Partha123$#@')
|
96 |
-
session.storbinary(f'STOR {ippic}', picture)
|
97 |
-
session.quit()
|
98 |
# with open(f"Photo/{ipclass}/{ipsection}/{ipcode}_{ipname}.jpg", 'wb') as f:
|
99 |
# f.write(picture.getvalue())
|
100 |
if(submit):
|
|
|
92 |
st.session_state.df.loc[st.session_state.df.Code == ipcode, 'Picture'] =f"Photo_{ipclass}_{ipsection}_{ipcode}_{ipname}.jpg"
|
93 |
ippic=f"Photo_{ipclass}_{ipsection}_{ipcode}_{ipname}.jpg"
|
94 |
print("Picture name: ",ippic)
|
95 |
+
# session = ftplib.FTP('ftp.digidemy.in','u669719505.partha','Partha123$#@')
|
96 |
+
# session.storbinary(f'STOR {ippic}', picture)
|
97 |
+
# session.quit()
|
98 |
# with open(f"Photo/{ipclass}/{ipsection}/{ipcode}_{ipname}.jpg", 'wb') as f:
|
99 |
# f.write(picture.getvalue())
|
100 |
if(submit):
|