Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,6 +18,7 @@ except ModuleNotFoundError:
|
|
18 |
install_package('transformers')
|
19 |
from transformers import pipeline
|
20 |
|
|
|
21 |
try:
|
22 |
import torch
|
23 |
except ModuleNotFoundError:
|
|
|
18 |
install_package('transformers')
|
19 |
from transformers import pipeline
|
20 |
|
21 |
+
# Ensure that either PyTorch or TensorFlow is installed
|
22 |
try:
|
23 |
import torch
|
24 |
except ModuleNotFoundError:
|