Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,9 +5,9 @@ from PIL import Image
|
|
| 5 |
from transformers import AutoProcessor, AutoModelForConditionalGeneration
|
| 6 |
|
| 7 |
subprocess.run(
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
)
|
| 12 |
|
| 13 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
|
| 5 |
from transformers import AutoProcessor, AutoModelForConditionalGeneration
|
| 6 |
|
| 7 |
subprocess.run(
|
| 8 |
+
"pip install --upgrade transformers>=4.50.0",
|
| 9 |
+
shell=True,
|
| 10 |
+
check=True
|
| 11 |
)
|
| 12 |
|
| 13 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|