Spaces:
Sleeping
Sleeping
File size: 319 Bytes
b3402e9 890b2c5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import gradio as gr
def greet(name):
return "Hello " + name + "!!"
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()
import torch
print(f"Is CUDA available: {torch.cuda.is_available()}")
# True
print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
# Tesla T4 |