Spaces:
Sleeping
Sleeping
File size: 328 Bytes
b3402e9 1cb9066 b3402e9 0eaade4 b3402e9 0eaade4 890b2c5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import gradio as gr
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
# def greet(name):
# return "Hello " + name + "!!"
# iface = gr.Interface(fn=greet, inputs="text", outputs="text")
# iface.launch()
|