qqwjq1981 commited on
Commit
e6783e4
·
verified ·
1 Parent(s): a39906d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -21
app.py CHANGED
@@ -86,27 +86,6 @@ logging.basicConfig(level=logging.DEBUG, format="%(asctime)s - %(levelname)s - %
86
  logger = logging.getLogger(__name__)
87
  logger.info(f"MoviePy Version: {moviepy.__version__}")
88
 
89
- def list_available_fonts():
90
- try:
91
- # Run the 'fc-list' command to list fonts
92
- result = subprocess.run(
93
- ["fc-list", "--format", "%{file}\\n"],
94
- stdout=subprocess.PIPE,
95
- stderr=subprocess.PIPE,
96
- text=True,
97
- check=True
98
- )
99
- fonts = result.stdout.splitlines()
100
- logger.debug(f"Available fonts:\n{fonts}")
101
- return fonts
102
- except subprocess.CalledProcessError as e:
103
- logger.error(f"Error while listing fonts: {e.stderr}")
104
- return []
105
-
106
- def split_into_sentences(text):
107
- blob = TextBlob(text)
108
- return [str(sentence) for sentence in blob.sentences]
109
-
110
  def transcribe_video(video_path):
111
  # Load the video file and extract audio
112
  video = VideoFileClip(video_path)
 
86
  logger = logging.getLogger(__name__)
87
  logger.info(f"MoviePy Version: {moviepy.__version__}")
88
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
  def transcribe_video(video_path):
90
  # Load the video file and extract audio
91
  video = VideoFileClip(video_path)