Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ OCI_UPLOAD_API_URL = os.getenv("OCI_UPLOAD_API_URL", "").strip()
|
|
| 32 |
if OCI_UPLOAD_API_URL:
|
| 33 |
OCI_UPLOAD_API_URL = OCI_UPLOAD_API_URL.rstrip('/')
|
| 34 |
|
| 35 |
-
print(f"🔧 Using device: {DEVICE} (forced CPU for compatibility)")
|
| 36 |
|
| 37 |
# Initialize FastAPI app
|
| 38 |
app = FastAPI(
|
|
|
|
| 32 |
if OCI_UPLOAD_API_URL:
|
| 33 |
OCI_UPLOAD_API_URL = OCI_UPLOAD_API_URL.rstrip('/')
|
| 34 |
|
| 35 |
+
print(f"🔧 Using device: {DEVICE} (forced CPU for Hugging Face Spaces compatibility)")
|
| 36 |
|
| 37 |
# Initialize FastAPI app
|
| 38 |
app = FastAPI(
|