annanau commited on
Commit
756261a
·
verified ·
1 Parent(s): 1fea9ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -1,8 +1,11 @@
 
 
1
  import gradio as gr
2
  import tensorflow as tf
3
  from tensorflow.keras.preprocessing import image
4
  import numpy as np
5
 
 
6
  # Load your trained Xception model
7
  model = tf.keras.models.load_model("icputrd/gelderman_decomposition_classification")
8
 
 
1
+ import os
2
+ os.environ["CUDA_VISIBLE_DEVICES"] = "-1" # Disable GPU usage
3
  import gradio as gr
4
  import tensorflow as tf
5
  from tensorflow.keras.preprocessing import image
6
  import numpy as np
7
 
8
+
9
  # Load your trained Xception model
10
  model = tf.keras.models.load_model("icputrd/gelderman_decomposition_classification")
11