Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -460,10 +460,23 @@ def build_gradio_interface():
|
|
| 460 |
outputs=output_json
|
| 461 |
)
|
| 462 |
|
| 463 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|