test / app.py
liujinyao
update
c6f2c61
raw
history blame contribute delete
211 Bytes
import os
import torch
import gradio as gr
def greet(name):
return torch.cuda.device_count(), os.system("nvidia-smi")
iface = gr.Interface(fn=greet, inputs="text", outputs=["text", "text"])
iface.launch()