test_pt_nightly / app.py
osanseviero's picture
Create app.py
1a57e80
raw
history blame contribute delete
166 Bytes
import gradio as gr
import torch
def greet(name):
return torch.cuda.device_count()
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
demo.launch()