Spaces:
Runtime error
Runtime error
parthasonu505
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -108,10 +108,10 @@ if st.session_state.go:
|
|
108 |
st.session_state.df.loc[st.session_state.df.Code == ipcode, 'Picture'] =f"{school_name}_{ipclass}_{ipsection}_{ipcode}_{ipname}.jpg"
|
109 |
ippic=f"{school_name}_{ipclass}_{ipsection}_{ipcode}_{ipname}.jpg"
|
110 |
print("Picture name: ",ippic)
|
111 |
-
session = ftplib.FTP('ftp.digidemy.in','u669719505.partha','Partha123$#@')
|
112 |
-
session.set_pasv(True)
|
113 |
-
session.storbinary(f'STOR {ippic}', picture)
|
114 |
-
session.quit()
|
115 |
# with open(f"Photo/{ipclass}/{ipsection}/{ipcode}_{ipname}.jpg", 'wb') as f:
|
116 |
# f.write(picture.getvalue())
|
117 |
if(submit):
|
|
|
108 |
st.session_state.df.loc[st.session_state.df.Code == ipcode, 'Picture'] =f"{school_name}_{ipclass}_{ipsection}_{ipcode}_{ipname}.jpg"
|
109 |
ippic=f"{school_name}_{ipclass}_{ipsection}_{ipcode}_{ipname}.jpg"
|
110 |
print("Picture name: ",ippic)
|
111 |
+
# session = ftplib.FTP('ftp.digidemy.in','u669719505.partha','Partha123$#@')
|
112 |
+
# session.set_pasv(True)
|
113 |
+
# session.storbinary(f'STOR {ippic}', picture)
|
114 |
+
# session.quit()
|
115 |
# with open(f"Photo/{ipclass}/{ipsection}/{ipcode}_{ipname}.jpg", 'wb') as f:
|
116 |
# f.write(picture.getvalue())
|
117 |
if(submit):
|