Spaces:
Build error
Build error
File size: 318 Bytes
93f83a7 b3fef9e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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
import gradio as gr
def greet(name):
return "Hello " + name + "!!"
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
demo.launch()
|