Update app.py
Browse files
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 |
|