Spaces:
Sleeping
Sleeping
sotirios-slv
commited on
Commit
•
dc0ad49
1
Parent(s):
a10fa69
Switched over to using blocks to give greater control over what's displayed
Browse files
app.py
CHANGED
@@ -23,7 +23,9 @@ test_text = f"""
|
|
23 |
</div>
|
24 |
"""
|
25 |
|
26 |
-
diction = gr.HTML(test_text)
|
|
|
|
|
27 |
|
28 |
|
29 |
device = "cpu"
|
@@ -111,7 +113,7 @@ with gr.Blocks() as demo:
|
|
111 |
inp = input_audio
|
112 |
out = highlighted_results
|
113 |
btn = gr.Button("Run")
|
114 |
-
btn.click(fn=transcribe_audio, inputs=[
|
115 |
|
116 |
|
117 |
if __name__ == "__main__":
|
|
|
23 |
</div>
|
24 |
"""
|
25 |
|
26 |
+
# diction = gr.HTML(test_text)
|
27 |
+
|
28 |
+
diction_script = gr.Textbox(diction_text, interactive=False)
|
29 |
|
30 |
|
31 |
device = "cpu"
|
|
|
113 |
inp = input_audio
|
114 |
out = highlighted_results
|
115 |
btn = gr.Button("Run")
|
116 |
+
btn.click(fn=transcribe_audio, inputs=[diction_script, inp], outputs=out)
|
117 |
|
118 |
|
119 |
if __name__ == "__main__":
|