Spaces:
Sleeping
Sleeping
sotirios-slv
commited on
Commit
•
a10fa69
1
Parent(s):
1a2a8e8
Switched over to using blocks to give greater control over what's displayed
Browse files
app.py
CHANGED
@@ -93,14 +93,26 @@ input_audio = gr.Audio(
|
|
93 |
show_controls=False,
|
94 |
),
|
95 |
)
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
|
105 |
if __name__ == "__main__":
|
106 |
demo.launch()
|
|
|
93 |
show_controls=False,
|
94 |
),
|
95 |
)
|
96 |
+
|
97 |
+
# demo = gr.Interface(
|
98 |
+
# fn=transcribe_audio,
|
99 |
+
# inputs=[diction, input_audio],
|
100 |
+
# outputs=highlighted_results,
|
101 |
+
# title="Test your diction",
|
102 |
+
# description=description,
|
103 |
+
# theme="abidlabs/Lime",
|
104 |
+
# )
|
105 |
+
|
106 |
+
with gr.Blocks() as demo:
|
107 |
+
gr.HTML(description)
|
108 |
+
gr.HTML(test_text)
|
109 |
+
|
110 |
+
with gr.Row():
|
111 |
+
inp = input_audio
|
112 |
+
out = highlighted_results
|
113 |
+
btn = gr.Button("Run")
|
114 |
+
btn.click(fn=transcribe_audio, inputs=[diction_text, inp], outputs=out)
|
115 |
+
|
116 |
|
117 |
if __name__ == "__main__":
|
118 |
demo.launch()
|