elucidator8918 commited on
Commit
ea7c227
·
verified ·
1 Parent(s): 89530ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -4,6 +4,8 @@ import numpy as np
4
  import tensorflow as tf
5
  import gradio as gr
6
  import tempfile
 
 
7
 
8
  print(tf.config.list_physical_devices("GPU"))
9
  model = tf.keras.models.load_model('cnn.keras')
 
4
  import tensorflow as tf
5
  import gradio as gr
6
  import tempfile
7
+ import os
8
+ os.environ['CUDA_VISIBLE_DEVICES'] = "0"
9
 
10
  print(tf.config.list_physical_devices("GPU"))
11
  model = tf.keras.models.load_model('cnn.keras')