Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|