Warlord-K commited on
Commit
de9792d
·
1 Parent(s): 56b707d

Change to Blocks

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -87,7 +87,12 @@ def main(filename):
87
  output = text_file(answer)
88
  return output
89
 
90
- demo = gr.Interface(main, "audio", "audio")
 
 
 
 
 
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()