MariaFilipkowska commited on
Commit
fb54772
·
verified ·
1 Parent(s): 2762a7a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -51,7 +51,7 @@ def get_ref_content(path: str) -> str | object:
51
  if path.endswith('mp3') or path.startswith('https://www.youtube.com/'):
52
  file = librosa.load(path)
53
  elif path.endswith('.xlsx') or path.endswith('.xls'):
54
- file = pd.read_excel(path).to_string()
55
  elif path.startswith('http'):
56
  file = requests.get(path).content
57
  else:
 
51
  if path.endswith('mp3') or path.startswith('https://www.youtube.com/'):
52
  file = librosa.load(path)
53
  elif path.endswith('.xlsx') or path.endswith('.xls'):
54
+ file = pd.read_excel(path).to_csv(sep=' ', index=False, header=False)
55
  elif path.startswith('http'):
56
  file = requests.get(path).content
57
  else: