Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
xiaoshi
/
test
like
1
Runtime error
App
Files
Files
Community
main
test
/
app.py
liujinyao
update
c6f2c61
almost 3 years ago
raw
Copy download link
history
blame
contribute
delete
Safe
211 Bytes
import
os
import
torch
import
gradio
as
gr
def
greet
(
name
):
return
torch.cuda.device_count(), os.system(
"nvidia-smi"
)
iface = gr.Interface(fn=greet, inputs=
"text"
, outputs=[
"text"
,
"text"
])
iface.launch()