Omnibus commited on
Commit
69b1728
1 Parent(s): 402d823

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,5 +1,6 @@
1
  import gradio as gr
2
  import torch
 
3
  from transformers import AutoProcessor, BarkModel
4
  import scipy
5
  from pytube import YouTube
@@ -45,6 +46,7 @@ def load_video_yt(vid):
45
  return vid, vid_aud, "tmp_aud.mp3"
46
 
47
  def trim_clip(clip):
 
48
  #clip = "tmp_aud.mp3"
49
  # Open an mp3 file
50
  song = AudioSegment.from_file(f'{clip}',
 
1
  import gradio as gr
2
  import torch
3
+ from pathlib import Path
4
  from transformers import AutoProcessor, BarkModel
5
  import scipy
6
  from pytube import YouTube
 
46
  return vid, vid_aud, "tmp_aud.mp3"
47
 
48
  def trim_clip(clip):
49
+ clip = Path("tmp_aud.mp3")
50
  #clip = "tmp_aud.mp3"
51
  # Open an mp3 file
52
  song = AudioSegment.from_file(f'{clip}',