You can alway use subprocess.Popen to query the system. In fact, I ceated a gradio app just to do that among other tests to see what’s feasible with HF Spaces: ttw - a Hugging Face Space by mikeee 3
Try some of the examples in the table or type directly to the text box.