Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
022c8c1
1
Parent(s):
e9e8c95
input histories
Browse files
app.py
CHANGED
@@ -53,8 +53,7 @@ def generate(user_prompt, temperature=0.1, max_new_tokens=128, top_p=0.95, repet
|
|
53 |
|
54 |
|
55 |
@spaces.GPU(duration=60)
|
56 |
-
def transcribe(audio, formatted_history
|
57 |
-
|
58 |
sr, y = audio
|
59 |
y = y.astype(np.float32)
|
60 |
y /= np.max(np.abs(y))
|
@@ -93,7 +92,7 @@ with gr.Blocks() as demo:
|
|
93 |
formatted_history, label="Transcription")
|
94 |
|
95 |
transcribe_btn.click(fn=transcribe, inputs=[audio_input, formatted_history, instruct_history],
|
96 |
-
outputs=[output_audio
|
97 |
|
98 |
|
99 |
demo.queue()
|
|
|
53 |
|
54 |
|
55 |
@spaces.GPU(duration=60)
|
56 |
+
def transcribe(audio, formatted_history, instruct_history):
|
|
|
57 |
sr, y = audio
|
58 |
y = y.astype(np.float32)
|
59 |
y /= np.max(np.abs(y))
|
|
|
92 |
formatted_history, label="Transcription")
|
93 |
|
94 |
transcribe_btn.click(fn=transcribe, inputs=[audio_input, formatted_history, instruct_history],
|
95 |
+
outputs=[output_audio])
|
96 |
|
97 |
|
98 |
demo.queue()
|