Jegree commited on
Commit
5728908
·
verified ·
1 Parent(s): 21af175

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -226,7 +226,7 @@ def create_app():
226
  )
227
  def get_gpu_kind():
228
  device = jax.devices()[0]
229
- if not gradio_helpers.should_mock() and device.platform != 'gpu':
230
  raise gr.Error('GPU not visible to JAX!')
231
  return f'GPU={device.device_kind}'
232
  demo.load(get_gpu_kind, None, gpu_kind)
 
226
  )
227
  def get_gpu_kind():
228
  device = jax.devices()[0]
229
+ if not gradio_helpers.should_mock():
230
  raise gr.Error('GPU not visible to JAX!')
231
  return f'GPU={device.device_kind}'
232
  demo.load(get_gpu_kind, None, gpu_kind)