PierreHanna commited on
Commit
356b9b0
1 Parent(s): ffecd2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -0
app.py CHANGED
@@ -82,4 +82,25 @@ demo = gr.Interface(fn=process,
82
 
83
  )
84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  demo.launch(debug=False)
 
82
 
83
  )
84
 
85
+
86
+ with gr.Blocks() as demo:
87
+
88
+ with gr.Row():
89
+
90
+ with gr.Column():
91
+
92
+ with gr.Row():
93
+ inputs = gr.Audio(type="filepath", label='Audio Input')
94
+
95
+ with gr.Row():
96
+ analyze_btn = gr.Button('Analyze File')
97
+
98
+ with gr.Row():
99
+ audio = gr.Audio(label='Audio Output')
100
+ moods=gr.outputs.Label(label="Moods")
101
+
102
+
103
+ download_btn.click(process, inputs=[url], outputs=[moods])
104
+ url.submit(process, inputs=[url], outputs=[moods])
105
+
106
  demo.launch(debug=False)