omanaaja commited on
Commit
cc85b01
·
1 Parent(s): 772929d

mematikan pesan warning pada app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -2,6 +2,8 @@ import tensorflow as tf
2
  tf.config.set_visible_devices([], 'GPU')
3
 
4
  import os
 
 
5
  os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
6
 
7
  import gradio as gr
 
2
  tf.config.set_visible_devices([], 'GPU')
3
 
4
  import os
5
+ os.environ['CUDA_VISIBLE_DEVICES'] = '-1' # Disable all GPUs
6
+ os.environ['TF_ENABLE_ONEDNN_OPTS'] = '0' # Optional: disable oneDNN
7
  os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
8
 
9
  import gradio as gr