fix ensure transformer
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ def ensure_transformers_installed():
|
|
| 10 |
try:
|
| 11 |
import transformers
|
| 12 |
except ImportError:
|
| 13 |
-
import subprocess
|
| 14 |
subprocess.check_call([sys.executable, "-m", "pip", "install", "transformers==4.54.0"])
|
| 15 |
|
| 16 |
ensure_transformers_installed()
|
|
|
|
| 10 |
try:
|
| 11 |
import transformers
|
| 12 |
except ImportError:
|
| 13 |
+
import subprocess, sys
|
| 14 |
subprocess.check_call([sys.executable, "-m", "pip", "install", "transformers==4.54.0"])
|
| 15 |
|
| 16 |
ensure_transformers_installed()
|