Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
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()
|
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)
|