import sys import io, os, stat from zipfile import ZipFile from pydub import AudioSegment HF_TOKEN = os.environ.get("HF_TOKEN") # Use never ffmpeg binary for Ubuntu20 to use denoising for microphone input print("Export newer ffmpeg binary for denoise filter") ZipFile("ffmpeg.zip").extractall() print("Make ffmpeg binary executable") st = os.stat("ffmpeg") os.chmod("ffmpeg", st.st_mode | stat.S_IEXEC) from TextGen import app