parthasonu505 commited on
Commit
a29585c
·
verified ·
1 Parent(s): 330a32f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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):