sraimund commited on
Commit
3c26423
1 Parent(s): 60e180b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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")