How to store input files on disk?
Hi, I spent hours  trying to solve a basic this basic thing. How to store input files on diks?the below does not workdef save(file):
  
  
  global df #used to access dataframe object  in jupyter notebook while debugging

  s=str(file.file.read(),'utf-8')
  data = StringIO(s)
  df=pd.read_csv(data)
  
  return df

demo = gr.Interface(save, "file", "dataframe")
demo.launch(share=True)givespandas.errors.EmptyDataError: No columns to parse from filewhite tying to upload a valid csv fileGradio Docsis not helpful for saving files
2023-01-18T22:06:45Z
def save(files):
        for file in files:
            with open(file.name) as f:
                df = pd.read_csv(StringIO(f.read()))
                df.to_csv(file.orig_name)
2023-01-20T11:36:31Z
Hi@dimadgo, is there a way to save the file buffer directly without exclusively reading it?