Hi everyone
I’m new to Streamlit and I’ve run into a problem.
I have a data file with segy format . … I will upload it by st.file uploader. But the library I use to read the information in the file needs to get the uploaded file’s name.
The problem is that when I use data.name in the library, it gives an error:
FileNotFoundError: [Errno 2] No such file or directory
there is one of the libraries I need for my work:
from segysak.segy import segy_header_scan
default just needs the file name
scan = segy_header_scan(“data.segy”)
Do you have a solution on how I can enter the file name correctly?