Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
import torch
|
3 |
from accelerate import init_empty_weights
|
4 |
import random
|
@@ -75,6 +76,7 @@ def generate_audio(age, gender, accent):
|
|
75 |
return wav_file_path, wav_file_path
|
76 |
|
77 |
# Transcribe & Compare
|
|
|
78 |
def transcribe_audio(file_path):
|
79 |
if not file_path:
|
80 |
return "No file selected.", "", "", "", "", "", ""
|
|
|
1 |
import gradio as gr
|
2 |
+
import spaces
|
3 |
import torch
|
4 |
from accelerate import init_empty_weights
|
5 |
import random
|
|
|
76 |
return wav_file_path, wav_file_path
|
77 |
|
78 |
# Transcribe & Compare
|
79 |
+
@spaces.GPU
|
80 |
def transcribe_audio(file_path):
|
81 |
if not file_path:
|
82 |
return "No file selected.", "", "", "", "", "", ""
|