iajitpanday commited on
Commit
6642ed5
·
verified ·
1 Parent(s): 73e750a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -3
app.py CHANGED
@@ -460,10 +460,23 @@ def build_gradio_interface():
460
  outputs=output_json
461
  )
462
 
463
- # Create a tabbed interface
 
 
 
 
 
 
 
 
 
 
 
 
 
464
  demo = gr.TabbedInterface(
465
- [admin_interface, test_interface],
466
- ["Admin Dashboard", "Test Interface"]
467
  )
468
 
469
  return demo
 
460
  outputs=output_json
461
  )
462
 
463
+ # Debug interface
464
+ with gr.Blocks() as debug_interface:
465
+ gr.Markdown("# Debug Interface")
466
+ audio_input = gr.Audio(label="Test Audio Input")
467
+ debug_btn = gr.Button("Debug Audio Format")
468
+ output_json = gr.JSON(label="Debug Info")
469
+
470
+ debug_btn.click(
471
+ debug_audio,
472
+ inputs=audio_input,
473
+ outputs=output_json
474
+ )
475
+
476
+ # Create a tabbed interface with all three tabs
477
  demo = gr.TabbedInterface(
478
+ [admin_interface, test_interface, debug_interface],
479
+ ["Admin Dashboard", "Test Interface", "Debug"]
480
  )
481
 
482
  return demo