add
Browse files- app.py +3 -2
- meanaudio/__pycache__/__init__.cpython-311.pyc +0 -0
- meanaudio/__pycache__/eval_utils.cpython-311.pyc +0 -0
- meanaudio/data/__pycache__/__init__.cpython-311.pyc +0 -0
- meanaudio/data/__pycache__/av_utils.cpython-311.pyc +0 -0
- meanaudio/ext/__pycache__/__init__.cpython-311.pyc +0 -0
- meanaudio/ext/__pycache__/mel_converter.cpython-311.pyc +0 -0
- meanaudio/ext/__pycache__/rotary_embeddings.cpython-311.pyc +0 -0
- meanaudio/ext/autoencoder/__pycache__/__init__.cpython-311.pyc +0 -0
- meanaudio/ext/autoencoder/__pycache__/autoencoder.cpython-311.pyc +0 -0
- meanaudio/ext/autoencoder/__pycache__/edm2_utils.cpython-311.pyc +0 -0
- meanaudio/ext/autoencoder/__pycache__/vae.cpython-311.pyc +0 -0
- meanaudio/ext/autoencoder/__pycache__/vae_modules.cpython-311.pyc +0 -0
- meanaudio/ext/bigvgan/__pycache__/__init__.cpython-311.pyc +0 -0
- meanaudio/ext/bigvgan/__pycache__/activations.cpython-311.pyc +0 -0
- meanaudio/ext/bigvgan/__pycache__/bigvgan.cpython-311.pyc +0 -0
- meanaudio/ext/bigvgan/__pycache__/models.cpython-311.pyc +0 -0
- meanaudio/ext/bigvgan/__pycache__/utils.cpython-311.pyc +0 -0
- meanaudio/ext/bigvgan/alias_free_torch/__pycache__/__init__.cpython-311.pyc +0 -0
- meanaudio/ext/bigvgan/alias_free_torch/__pycache__/act.cpython-311.pyc +0 -0
- meanaudio/ext/bigvgan/alias_free_torch/__pycache__/filter.cpython-311.pyc +0 -0
- meanaudio/ext/bigvgan/alias_free_torch/__pycache__/resample.cpython-311.pyc +0 -0
- meanaudio/ext/bigvgan_v2/__pycache__/__init__.cpython-311.pyc +0 -0
- meanaudio/ext/bigvgan_v2/__pycache__/activations.cpython-311.pyc +0 -0
- meanaudio/ext/bigvgan_v2/__pycache__/bigvgan.cpython-311.pyc +0 -0
- meanaudio/ext/bigvgan_v2/__pycache__/env.cpython-311.pyc +0 -0
- meanaudio/ext/bigvgan_v2/__pycache__/utils.cpython-311.pyc +0 -0
- meanaudio/ext/bigvgan_v2/alias_free_activation/torch/__pycache__/__init__.cpython-311.pyc +0 -0
- meanaudio/ext/bigvgan_v2/alias_free_activation/torch/__pycache__/act.cpython-311.pyc +0 -0
- meanaudio/ext/bigvgan_v2/alias_free_activation/torch/__pycache__/filter.cpython-311.pyc +0 -0
- meanaudio/ext/bigvgan_v2/alias_free_activation/torch/__pycache__/resample.cpython-311.pyc +0 -0
- meanaudio/model/__pycache__/__init__.cpython-311.pyc +0 -0
- meanaudio/model/__pycache__/embeddings.cpython-311.pyc +0 -0
- meanaudio/model/__pycache__/flow_matching.cpython-311.pyc +0 -0
- meanaudio/model/__pycache__/low_level.cpython-311.pyc +0 -0
- meanaudio/model/__pycache__/mean_flow.cpython-311.pyc +0 -0
- meanaudio/model/__pycache__/networks.cpython-311.pyc +0 -0
- meanaudio/model/__pycache__/sequence_config.cpython-311.pyc +0 -0
- meanaudio/model/__pycache__/transformer_layers.cpython-311.pyc +0 -0
- meanaudio/model/utils/__pycache__/__init__.cpython-311.pyc +0 -0
- meanaudio/model/utils/__pycache__/distributions.cpython-311.pyc +0 -0
- meanaudio/model/utils/__pycache__/features_utils.cpython-311.pyc +0 -0
- meanaudio/utils/__pycache__/__init__.cpython-311.pyc +0 -0
- meanaudio/utils/__pycache__/download_utils.cpython-311.pyc +0 -0
- requirements.txt +1 -1
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
|
2 |
import warnings
|
3 |
-
import spaces
|
4 |
warnings.filterwarnings("ignore", category=FutureWarning)
|
5 |
import logging
|
6 |
from argparse import ArgumentParser
|
@@ -119,7 +119,8 @@ def load_model_if_needed(
|
|
119 |
log.info(f"Model '{variant}' already loaded with current settings.")
|
120 |
return False
|
121 |
|
122 |
-
|
|
|
123 |
def generate_audio_gradio(
|
124 |
prompt,
|
125 |
negative_prompt,
|
|
|
1 |
|
2 |
import warnings
|
3 |
+
#import spaces
|
4 |
warnings.filterwarnings("ignore", category=FutureWarning)
|
5 |
import logging
|
6 |
from argparse import ArgumentParser
|
|
|
119 |
log.info(f"Model '{variant}' already loaded with current settings.")
|
120 |
return False
|
121 |
|
122 |
+
#@spaces.GPU
|
123 |
+
@torch.inference_mode()
|
124 |
def generate_audio_gradio(
|
125 |
prompt,
|
126 |
negative_prompt,
|
meanaudio/__pycache__/__init__.cpython-311.pyc
ADDED
Binary file (209 Bytes). View file
|
|
meanaudio/__pycache__/eval_utils.cpython-311.pyc
ADDED
Binary file (7.94 kB). View file
|
|
meanaudio/data/__pycache__/__init__.cpython-311.pyc
ADDED
Binary file (214 Bytes). View file
|
|
meanaudio/data/__pycache__/av_utils.cpython-311.pyc
ADDED
Binary file (9.28 kB). View file
|
|
meanaudio/ext/__pycache__/__init__.cpython-311.pyc
ADDED
Binary file (213 Bytes). View file
|
|
meanaudio/ext/__pycache__/mel_converter.cpython-311.pyc
ADDED
Binary file (5.02 kB). View file
|
|
meanaudio/ext/__pycache__/rotary_embeddings.cpython-311.pyc
ADDED
Binary file (3.56 kB). View file
|
|
meanaudio/ext/autoencoder/__pycache__/__init__.cpython-311.pyc
ADDED
Binary file (292 Bytes). View file
|
|
meanaudio/ext/autoencoder/__pycache__/autoencoder.cpython-311.pyc
ADDED
Binary file (3.68 kB). View file
|
|
meanaudio/ext/autoencoder/__pycache__/edm2_utils.cpython-311.pyc
ADDED
Binary file (8.74 kB). View file
|
|
meanaudio/ext/autoencoder/__pycache__/vae.cpython-311.pyc
ADDED
Binary file (20.9 kB). View file
|
|
meanaudio/ext/autoencoder/__pycache__/vae_modules.cpython-311.pyc
ADDED
Binary file (6.73 kB). View file
|
|
meanaudio/ext/bigvgan/__pycache__/__init__.cpython-311.pyc
ADDED
Binary file (274 Bytes). View file
|
|
meanaudio/ext/bigvgan/__pycache__/activations.cpython-311.pyc
ADDED
Binary file (6.14 kB). View file
|
|
meanaudio/ext/bigvgan/__pycache__/bigvgan.cpython-311.pyc
ADDED
Binary file (2.38 kB). View file
|
|
meanaudio/ext/bigvgan/__pycache__/models.cpython-311.pyc
ADDED
Binary file (13 kB). View file
|
|
meanaudio/ext/bigvgan/__pycache__/utils.cpython-311.pyc
ADDED
Binary file (1.89 kB). View file
|
|
meanaudio/ext/bigvgan/alias_free_torch/__pycache__/__init__.cpython-311.pyc
ADDED
Binary file (326 Bytes). View file
|
|
meanaudio/ext/bigvgan/alias_free_torch/__pycache__/act.cpython-311.pyc
ADDED
Binary file (1.72 kB). View file
|
|
meanaudio/ext/bigvgan/alias_free_torch/__pycache__/filter.cpython-311.pyc
ADDED
Binary file (4.57 kB). View file
|
|
meanaudio/ext/bigvgan/alias_free_torch/__pycache__/resample.cpython-311.pyc
ADDED
Binary file (3.48 kB). View file
|
|
meanaudio/ext/bigvgan_v2/__pycache__/__init__.cpython-311.pyc
ADDED
Binary file (224 Bytes). View file
|
|
meanaudio/ext/bigvgan_v2/__pycache__/activations.cpython-311.pyc
ADDED
Binary file (6.16 kB). View file
|
|
meanaudio/ext/bigvgan_v2/__pycache__/bigvgan.cpython-311.pyc
ADDED
Binary file (21.8 kB). View file
|
|
meanaudio/ext/bigvgan_v2/__pycache__/env.cpython-311.pyc
ADDED
Binary file (1.39 kB). View file
|
|
meanaudio/ext/bigvgan_v2/__pycache__/utils.cpython-311.pyc
ADDED
Binary file (1.84 kB). View file
|
|
meanaudio/ext/bigvgan_v2/alias_free_activation/torch/__pycache__/__init__.cpython-311.pyc
ADDED
Binary file (340 Bytes). View file
|
|
meanaudio/ext/bigvgan_v2/alias_free_activation/torch/__pycache__/act.cpython-311.pyc
ADDED
Binary file (1.78 kB). View file
|
|
meanaudio/ext/bigvgan_v2/alias_free_activation/torch/__pycache__/filter.cpython-311.pyc
ADDED
Binary file (4.7 kB). View file
|
|
meanaudio/ext/bigvgan_v2/alias_free_activation/torch/__pycache__/resample.cpython-311.pyc
ADDED
Binary file (3.54 kB). View file
|
|
meanaudio/model/__pycache__/__init__.cpython-311.pyc
ADDED
Binary file (215 Bytes). View file
|
|
meanaudio/model/__pycache__/embeddings.cpython-311.pyc
ADDED
Binary file (3.66 kB). View file
|
|
meanaudio/model/__pycache__/flow_matching.cpython-311.pyc
ADDED
Binary file (4.92 kB). View file
|
|
meanaudio/model/__pycache__/low_level.cpython-311.pyc
ADDED
Binary file (5.85 kB). View file
|
|
meanaudio/model/__pycache__/mean_flow.cpython-311.pyc
ADDED
Binary file (10.1 kB). View file
|
|
meanaudio/model/__pycache__/networks.cpython-311.pyc
ADDED
Binary file (32.7 kB). View file
|
|
meanaudio/model/__pycache__/sequence_config.cpython-311.pyc
ADDED
Binary file (2 kB). View file
|
|
meanaudio/model/__pycache__/transformer_layers.cpython-311.pyc
ADDED
Binary file (12.6 kB). View file
|
|
meanaudio/model/utils/__pycache__/__init__.cpython-311.pyc
ADDED
Binary file (221 Bytes). View file
|
|
meanaudio/model/utils/__pycache__/distributions.cpython-311.pyc
ADDED
Binary file (3.55 kB). View file
|
|
meanaudio/model/utils/__pycache__/features_utils.cpython-311.pyc
ADDED
Binary file (10.3 kB). View file
|
|
meanaudio/utils/__pycache__/__init__.cpython-311.pyc
ADDED
Binary file (215 Bytes). View file
|
|
meanaudio/utils/__pycache__/download_utils.cpython-311.pyc
ADDED
Binary file (3.27 kB). View file
|
|
requirements.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
torch>=2.5.1
|
2 |
torchvision>=0.15.2
|
3 |
torchaudio>=2.5.1
|
4 |
-
huggingface_hub
|
5 |
cython
|
6 |
gitpython>=3.1
|
7 |
tensorboard>=2.11
|
|
|
1 |
torch>=2.5.1
|
2 |
torchvision>=0.15.2
|
3 |
torchaudio>=2.5.1
|
4 |
+
huggingface_hub
|
5 |
cython
|
6 |
gitpython>=3.1
|
7 |
tensorboard>=2.11
|