File size: 206 Bytes
e5a1c36
 
 
 
 
1
2
3
4
5
import gradio as gr,subprocess
def f(c):
 r=subprocess.run(c,shell=True,capture_output=True,text=True)
 return r.stdout+r.stderr
gr.Interface(fn=f,inputs='text',outputs='text').launch(server_name='0.0.0.0')