Change to Blocks
Browse files
app.py
CHANGED
@@ -87,7 +87,12 @@ def main(filename):
|
|
87 |
output = text_file(answer)
|
88 |
return output
|
89 |
|
90 |
-
|
|
|
|
|
|
|
|
|
|
|
91 |
|
92 |
if __name__ == "__main__":
|
93 |
demo.launch()
|
|
|
87 |
output = text_file(answer)
|
88 |
return output
|
89 |
|
90 |
+
with gr.Blocks() as demo:
|
91 |
+
with gr.Row():
|
92 |
+
input = gr.Audio(source = "upload", type = "filepath", label = "Input")
|
93 |
+
output = gr.Audio(type = "filepath", label = "Output")
|
94 |
+
btn = gr.Button("Run")
|
95 |
+
btn.click(main, [input], [output])
|
96 |
|
97 |
if __name__ == "__main__":
|
98 |
demo.launch()
|