Spaces:
Sleeping
Sleeping
import gradio as gr | |
import subprocess | |
def run_command(command): | |
result = subprocess.run(command, shell=True, capture_output=True, text=True) | |
return result.stdout + "\n" + result.stderr | |
iface = gr.Interface(fn=run_command, inputs="text", outputs="text") | |
iface.launch() | |