Spaces:
Sleeping
Sleeping
sotirios-slv
commited on
Commit
•
b802d71
1
Parent(s):
dc0ad49
Switched back to using standard interface
Browse files
app.py
CHANGED
@@ -96,24 +96,24 @@ input_audio = gr.Audio(
|
|
96 |
),
|
97 |
)
|
98 |
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
with gr.Blocks() as demo:
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
|
118 |
|
119 |
if __name__ == "__main__":
|
|
|
96 |
),
|
97 |
)
|
98 |
|
99 |
+
demo = gr.Interface(
|
100 |
+
fn=transcribe_audio,
|
101 |
+
inputs=[diction_script, input_audio],
|
102 |
+
outputs=highlighted_results,
|
103 |
+
title="Test your diction",
|
104 |
+
description=description,
|
105 |
+
theme="abidlabs/Lime",
|
106 |
+
)
|
107 |
+
|
108 |
+
# with gr.Blocks() as demo:
|
109 |
+
# gr.HTML(description)
|
110 |
+
# gr.HTML(test_text)
|
111 |
+
|
112 |
+
# with gr.Row():
|
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__":
|