MichaelA1706 commited on
Commit
938764a
·
verified ·
1 Parent(s): 702c4b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import os
2
  os.environ["CUDA_VISIBLE_DEVICES"] = ""
 
3
 
4
- # ✅ DO NOT import spaces — avoids the GPU decorator check entirely
5
  import gradio as gr
6
  from transformers import pipeline
7
 
 
1
  import os
2
  os.environ["CUDA_VISIBLE_DEVICES"] = ""
3
+ os.environ["SPACES_ZERO_GPU"] = "0" # ✅ THIS TELLS HF: USE CPU!
4
 
 
5
  import gradio as gr
6
  from transformers import pipeline
7