File size: 324 Bytes
dd6ba28 d652388 dd6ba28 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import gradio as gr
import subprocess
import psutil
def app(voice):
cpu_percent = psutil.cpu_percent()
memory_info = psutil.virtual_memory()
memory_percent = memory_info.percent
return cpu_percent, memory_percent
iface = gr.Interface(fn=app, inputs=None, outputs="text", live=True)
iface.launch()
|