Spaces:
Sleeping
Sleeping
Commit ·
6838bad
1
Parent(s): 8eba511
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import subprocess
|
| 2 |
|
| 3 |
# Install torch using pip
|
| 4 |
-
subprocess.check_call(['pip', 'install', 'torch'])
|
| 5 |
|
| 6 |
import torch
|
| 7 |
from transformers import AutoModelForImageClassification, AutoFeatureExtractor
|
|
|
|
| 1 |
import subprocess
|
| 2 |
|
| 3 |
# Install torch using pip
|
| 4 |
+
subprocess.check_call(['pip', 'install', 'torch', 'transformers'])
|
| 5 |
|
| 6 |
import torch
|
| 7 |
from transformers import AutoModelForImageClassification, AutoFeatureExtractor
|