Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -1,16 +1 @@
|
|
1 |
-
import sys
|
2 |
-
import io, os, stat
|
3 |
-
|
4 |
-
from zipfile import ZipFile
|
5 |
-
|
6 |
-
from pydub import AudioSegment
|
7 |
-
|
8 |
-
HF_TOKEN = os.environ.get("HF_TOKEN")
|
9 |
-
|
10 |
-
# Use never ffmpeg binary for Ubuntu20 to use denoising for microphone input
|
11 |
-
print("Export newer ffmpeg binary for denoise filter")
|
12 |
-
ZipFile("ffmpeg.zip").extractall()
|
13 |
-
print("Make ffmpeg binary executable")
|
14 |
-
st = os.stat("ffmpeg")
|
15 |
-
os.chmod("ffmpeg", st.st_mode | stat.S_IEXEC)
|
16 |
from TextGen import app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
from TextGen import app
|