Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
98bbe93
1
Parent(s):
2b54ce7
add transcription box to outputs
Browse files
app.py
CHANGED
@@ -50,7 +50,6 @@ def generate(user_prompt, temperature=0.1, max_new_tokens=128, top_p=0.95, repet
|
|
50 |
output = client.text_generation(
|
51 |
instruct_history, **generate_kwargs, stream=False, details=False, return_full_text=False)
|
52 |
|
53 |
-
print(output)
|
54 |
return output
|
55 |
|
56 |
|
@@ -91,11 +90,10 @@ with gr.Blocks() as demo:
|
|
91 |
|
92 |
transcribe_btn = gr.Button("Transcribe")
|
93 |
|
94 |
-
transcription_box = gr.Textbox(
|
95 |
-
formatted_history, label="Transcription")
|
96 |
|
97 |
transcribe_btn.click(fn=transcribe, inputs=[audio_input],
|
98 |
-
outputs=[output_audio])
|
99 |
|
100 |
if __name__ == "__main__":
|
101 |
demo.queue()
|
|
|
50 |
output = client.text_generation(
|
51 |
instruct_history, **generate_kwargs, stream=False, details=False, return_full_text=False)
|
52 |
|
|
|
53 |
return output
|
54 |
|
55 |
|
|
|
90 |
|
91 |
transcribe_btn = gr.Button("Transcribe")
|
92 |
|
93 |
+
transcription_box = gr.Textbox(label="Transcription")
|
|
|
94 |
|
95 |
transcribe_btn.click(fn=transcribe, inputs=[audio_input],
|
96 |
+
outputs=[output_audio, transcription_box])
|
97 |
|
98 |
if __name__ == "__main__":
|
99 |
demo.queue()
|