Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -51,6 +51,17 @@ def diva_audio(audio_input, do_sample=False, temperature=0.001):
|
|
51 |
)
|
52 |
|
53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
@spaces.GPU
|
55 |
def transcribe(audio_input, state, model_order):
|
56 |
if audio_input == None:
|
|
|
51 |
)
|
52 |
|
53 |
|
54 |
+
def transcribe_wrapper(audio_input, state, model_order):
|
55 |
+
yield gr.Button(
|
56 |
+
value=spinner + " Generating Responses " + spinner,
|
57 |
+
interactive=False,
|
58 |
+
variant="primary",
|
59 |
+
),
|
60 |
+
"",
|
61 |
+
state,
|
62 |
+
|
63 |
+
yield from transcribe(audio_input, state, model_order)
|
64 |
+
|
65 |
@spaces.GPU
|
66 |
def transcribe(audio_input, state, model_order):
|
67 |
if audio_input == None:
|