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