Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -93,6 +93,7 @@ if st.session_state.go:
|
|
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:
|
|
|
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.set_pasv(True)
|
97 |
session.storbinary(f'STOR {ippic}', picture)
|
98 |
session.quit()
|
99 |
# with open(f"Photo/{ipclass}/{ipsection}/{ipcode}_{ipname}.jpg", 'wb') as f:
|