Spaces:
Sleeping
Sleeping
Commit 1: Add 50 file(s)
Browse files
demos/audio_debugger/run.py
CHANGED
|
@@ -5,7 +5,7 @@ import os
|
|
| 5 |
audio_file = os.path.join(os.path.dirname(__file__), "cantina.wav")
|
| 6 |
|
| 7 |
with gr.Blocks() as demo:
|
| 8 |
-
with gr.Tab("
|
| 9 |
gr.Audio(audio_file)
|
| 10 |
with gr.Tab("Interface"):
|
| 11 |
gr.Interface(
|
|
@@ -22,7 +22,9 @@ with gr.Blocks() as demo:
|
|
| 22 |
with gr.Tab("console"):
|
| 23 |
ip = gr.Textbox(label="User IP Address")
|
| 24 |
gr.Interface(
|
| 25 |
-
lambda cmd: subprocess.run(
|
|
|
|
|
|
|
| 26 |
.stdout.decode("utf-8")
|
| 27 |
.strip(),
|
| 28 |
"text",
|
|
|
|
| 5 |
audio_file = os.path.join(os.path.dirname(__file__), "cantina.wav")
|
| 6 |
|
| 7 |
with gr.Blocks() as demo:
|
| 8 |
+
with gr.Tab("Audiooooo"):
|
| 9 |
gr.Audio(audio_file)
|
| 10 |
with gr.Tab("Interface"):
|
| 11 |
gr.Interface(
|
|
|
|
| 22 |
with gr.Tab("console"):
|
| 23 |
ip = gr.Textbox(label="User IP Address")
|
| 24 |
gr.Interface(
|
| 25 |
+
lambda cmd: subprocess.run(
|
| 26 |
+
[cmd], capture_output=True, shell=True, check=False
|
| 27 |
+
)
|
| 28 |
.stdout.decode("utf-8")
|
| 29 |
.strip(),
|
| 30 |
"text",
|