Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ import gradio as gr
|
|
7 |
import torch
|
8 |
from PIL import Image
|
9 |
import time
|
|
|
10 |
|
11 |
# Import pipeline modules
|
12 |
from utils.transcribe import transcribe_audio, list_available_whisper_models
|
@@ -70,6 +71,7 @@ DEFAULT_STYLE_SUFFIX = "cinematic, 35 mm, shallow depth of field, film grain"
|
|
70 |
IMAGE_MODES = ["Independent", "Consistent (Img2Img)"]
|
71 |
DEFAULT_IMAGE_MODE = "Independent"
|
72 |
|
|
|
73 |
def process_audio(
|
74 |
audio_path,
|
75 |
whisper_model,
|
|
|
7 |
import torch
|
8 |
from PIL import Image
|
9 |
import time
|
10 |
+
import spaces
|
11 |
|
12 |
# Import pipeline modules
|
13 |
from utils.transcribe import transcribe_audio, list_available_whisper_models
|
|
|
71 |
IMAGE_MODES = ["Independent", "Consistent (Img2Img)"]
|
72 |
DEFAULT_IMAGE_MODE = "Independent"
|
73 |
|
74 |
+
@spaces.GPU
|
75 |
def process_audio(
|
76 |
audio_path,
|
77 |
whisper_model,
|