Spaces:
Runtime error
Runtime error
Commit
·
31fd6da
1
Parent(s):
80e1340
import space
Browse files
app.py
CHANGED
|
@@ -1,14 +1,12 @@
|
|
| 1 |
-
import gradio as gr
|
| 2 |
-
import spaces # Enables ZeroGPU on Hugging Face
|
| 3 |
-
from transformers import AutoModelForCausalLM
|
| 4 |
-
from anticipation.sample import generate
|
| 5 |
-
from anticipation.convert import events_to_midi, midi_to_events
|
| 6 |
-
from anticipation import ops
|
| 7 |
-
from anticipation.tokenize import extract_instruments
|
| 8 |
import torch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
from pyharp import *
|
| 10 |
-
|
| 11 |
-
import os
|
| 12 |
|
| 13 |
|
| 14 |
DEMUX_MODELS = ["mdx_extra_q", "mdx_extra", "htdemucs", "mdx_q"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import torch
|
| 2 |
+
import torchaudio
|
| 3 |
+
import gradio as gr
|
| 4 |
+
from demucs import pretrained
|
| 5 |
+
from demucs.apply import apply_model
|
| 6 |
+
from audiotools import AudioSignal
|
| 7 |
+
from typing import Dict
|
| 8 |
from pyharp import *
|
| 9 |
+
import spaces
|
|
|
|
| 10 |
|
| 11 |
|
| 12 |
DEMUX_MODELS = ["mdx_extra_q", "mdx_extra", "htdemucs", "mdx_q"]
|