Staticaliza commited on
Commit
709ddf2
·
verified ·
1 Parent(s): 406e417

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -90,11 +90,11 @@ def generate(input, instruction=DEFAULT_INPUT, sampling=False, temperature=0.7,
90
  elif filetype == "Video":
91
  frames = encode_video(input)
92
  content.extend(frames)
93
- audio = librosa.load(input, sr=16000, mono=True)
94
  print(audio)
95
  content.append(audio)
96
  elif filetype == "Audio":
97
- audio = librosa.load(input, sr=16000, mono=True)
98
  content.append(audio)
99
  else:
100
  return "Unsupported file type."
 
90
  elif filetype == "Video":
91
  frames = encode_video(input)
92
  content.extend(frames)
93
+ audio, _ = librosa.load(input, sr=16000, mono=True)
94
  print(audio)
95
  content.append(audio)
96
  elif filetype == "Audio":
97
+ audio, _ = librosa.load(input, sr=16000, mono=True)
98
  content.append(audio)
99
  else:
100
  return "Unsupported file type."