Spaces:
Runtime error
Runtime error
File size: 302 Bytes
6fcc6cd f8bd969 6fcc6cd |
1 2 3 4 5 6 7 8 9 10 11 12 |
import gradio as gr
import torch
print(f"Is CUDA available: {torch.cuda.is_available()}")
print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
def greet(name):
return "Hello " + name + "!!"
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()
|