Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,9 @@ import open_clip
|
|
4 |
import joblib
|
5 |
|
6 |
def predict(input_image):
|
|
|
|
|
|
|
7 |
device = torch.device("cpu")
|
8 |
# when running on GPUs:
|
9 |
# device = torch.device("cuda")
|
|
|
4 |
import joblib
|
5 |
|
6 |
def predict(input_image):
|
7 |
+
if input_image is None:
|
8 |
+
return "No image submitted..."
|
9 |
+
|
10 |
device = torch.device("cpu")
|
11 |
# when running on GPUs:
|
12 |
# device = torch.device("cuda")
|