Spaces:
Runtime error
Runtime error
import gradio as gr | |
import spaces | |
import torch | |
zero = torch.Tensor([0]).cuda() | |
print(zero.device) # <-- 'cpu' π€ | |
def slow_echo(message, history): | |
return message | |
demo = gr.ChatInterface(slow_echo).queue().launch() | |