Spaces:
Sleeping
Sleeping
File size: 289 Bytes
aa4251c |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import streamlit as st
import tensorflow as tf
def check_gpu():
return tf.test.is_gpu_available(cuda_only=False, min_cuda_compute_capability=None)
st.title('GPU Availability Checker')
if check_gpu():
st.success('GPU is available!')
else:
st.warning('GPU is not available.')
|