Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
import spaces
|
2 |
import torch
|
3 |
|
4 |
import gradio as gr
|
@@ -24,7 +24,7 @@ pipe = pipeline(
|
|
24 |
)
|
25 |
|
26 |
|
27 |
-
|
28 |
def transcribe(inputs, task):
|
29 |
if inputs is None:
|
30 |
raise gr.Error("No audio file submitted! Please upload or record an audio file before submitting your request.")
|
|
|
1 |
+
#import spaces
|
2 |
import torch
|
3 |
|
4 |
import gradio as gr
|
|
|
24 |
)
|
25 |
|
26 |
|
27 |
+
#spaces.GPU
|
28 |
def transcribe(inputs, task):
|
29 |
if inputs is None:
|
30 |
raise gr.Error("No audio file submitted! Please upload or record an audio file before submitting your request.")
|