Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ import inspect
|
|
| 17 |
# Initialize the pipeline; if CUDA is available, use GPU (device=0), else CPU (device=-1)
|
| 18 |
pipe_shadow = pipeline(
|
| 19 |
"image-classification",
|
| 20 |
-
model="
|
| 21 |
device=0 if torch.cuda.is_available() else -1
|
| 22 |
)
|
| 23 |
|
|
|
|
| 17 |
# Initialize the pipeline; if CUDA is available, use GPU (device=0), else CPU (device=-1)
|
| 18 |
pipe_shadow = pipeline(
|
| 19 |
"image-classification",
|
| 20 |
+
model="NeoChen1024/aesthetic-shadow-v2-backup",
|
| 21 |
device=0 if torch.cuda.is_available() else -1
|
| 22 |
)
|
| 23 |
|