Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,34 @@
|
|
7 |
# Updated to account for UI changes from https://github.com/rkfg/audiocraft/blob/long/app.py
|
8 |
# also released under the MIT license.
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
version = "2.0.0a"
|
13 |
|
|
|
7 |
# Updated to account for UI changes from https://github.com/rkfg/audiocraft/blob/long/app.py
|
8 |
# also released under the MIT license.
|
9 |
|
10 |
+
import argparse
|
11 |
+
from concurrent.futures import ProcessPoolExecutor
|
12 |
+
import os
|
13 |
+
from pathlib import Path
|
14 |
+
import subprocess as sp
|
15 |
+
from tempfile import NamedTemporaryFile
|
16 |
+
import time
|
17 |
+
import warnings
|
18 |
+
import glob
|
19 |
+
import re
|
20 |
+
from PIL import Image
|
21 |
+
from pydub import AudioSegment
|
22 |
+
from datetime import datetime
|
23 |
+
|
24 |
+
import json
|
25 |
+
import shutil
|
26 |
+
import taglib
|
27 |
+
import torch
|
28 |
+
import torchaudio
|
29 |
+
import gradio as gr
|
30 |
+
import numpy as np
|
31 |
+
import typing as tp
|
32 |
+
|
33 |
+
from audiocraft.data.audio_utils import convert_audio
|
34 |
+
from audiocraft.data.audio import audio_write
|
35 |
+
from audiocraft.models import AudioGen, MusicGen, MultiBandDiffusion
|
36 |
+
from audiocraft.utils import ui
|
37 |
+
import random, string
|
38 |
|
39 |
version = "2.0.0a"
|
40 |
|