mohith96 commited on
Commit
ba50c04
·
verified ·
1 Parent(s): 42eb765

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -0
src/streamlit_app.py CHANGED
@@ -16,6 +16,7 @@ if uploaded_file is not None:
16
  st.success(f"File uploaded: {uploaded_file.name}")
17
 
18
  # Read the file (decode for text files)
 
19
 
20
  if st.button("Generate pip command"):
21
  if imported_libraries and uploaded_file:
 
16
  st.success(f"File uploaded: {uploaded_file.name}")
17
 
18
  # Read the file (decode for text files)
19
+ libraries = uploaded_file.read().decode("utf-8")
20
 
21
  if st.button("Generate pip command"):
22
  if imported_libraries and uploaded_file: