Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -100,6 +100,8 @@ def run_command(command):
|
|
100 |
except subprocess.CalledProcessError as e:
|
101 |
return f"Error: {e}"
|
102 |
|
|
|
|
|
103 |
|
104 |
with gr.Blocks(
|
105 |
title = "3GPP Database",
|
@@ -209,6 +211,16 @@ with gr.Blocks(
|
|
209 |
|
210 |
|
211 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
|
213 |
if __name__ == "__main__":
|
214 |
demo.queue()
|
|
|
100 |
except subprocess.CalledProcessError as e:
|
101 |
return f"Error: {e}"
|
102 |
|
103 |
+
|
104 |
+
|
105 |
|
106 |
with gr.Blocks(
|
107 |
title = "3GPP Database",
|
|
|
211 |
|
212 |
|
213 |
|
214 |
+
with gr.Tab("Command Viewer"):
|
215 |
+
with gr.Row():
|
216 |
+
input_cmd = gr.Textbox(label="Command", placeholder="Enter a command")
|
217 |
+
output_cmd = gr.Label("", label="Command Output")
|
218 |
+
btn_cmd = gr.Button("Run Command", run_function_on_click=True)
|
219 |
+
|
220 |
+
btn_cmd.click(run_command, inputs=input_cmd.value, outputs=output_cmd)
|
221 |
+
|
222 |
+
|
223 |
+
|
224 |
|
225 |
if __name__ == "__main__":
|
226 |
demo.queue()
|