xmrt commited on
Commit
afc99d3
1 Parent(s): deae342
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -8,6 +8,9 @@ from io import BytesIO
8
  from transformers import OwlViTProcessor, OwlViTForObjectDetection
9
  import os
10
 
 
 
 
11
  # Use GPU if available
12
  if torch.cuda.is_available():
13
  device = torch.device("cuda")
 
8
  from transformers import OwlViTProcessor, OwlViTForObjectDetection
9
  import os
10
 
11
+ os.system("pip uninstall -y gradio")
12
+ os.system("pip install gradio==3.40.1")
13
+
14
  # Use GPU if available
15
  if torch.cuda.is_available():
16
  device = torch.device("cuda")