Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
# Gradio app for deployment on Hugging Face Spaces
|
| 2 |
# Audio super-resolution with Attention Res-UNet 2D
|
| 3 |
|
|
|
|
| 4 |
import os
|
| 5 |
import torch
|
| 6 |
import torchaudio
|
|
@@ -487,6 +488,7 @@ with gr.Blocks(
|
|
| 487 |
)
|
| 488 |
|
| 489 |
# ── Event logic ──
|
|
|
|
| 490 |
def run_pipeline(audio_path):
|
| 491 |
wav_path, spec_in_path, spec_out_path = inference(audio_path)
|
| 492 |
return (
|
|
|
|
| 1 |
# Gradio app for deployment on Hugging Face Spaces
|
| 2 |
# Audio super-resolution with Attention Res-UNet 2D
|
| 3 |
|
| 4 |
+
import spaces
|
| 5 |
import os
|
| 6 |
import torch
|
| 7 |
import torchaudio
|
|
|
|
| 488 |
)
|
| 489 |
|
| 490 |
# ── Event logic ──
|
| 491 |
+
@spaces.GPU()
|
| 492 |
def run_pipeline(audio_path):
|
| 493 |
wav_path, spec_in_path, spec_out_path = inference(audio_path)
|
| 494 |
return (
|