gradio
Browse files
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")
|