Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,9 +23,6 @@ logger = logging.getLogger(__name__)
|
|
| 23 |
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 24 |
MODEL_NAME = "microsoft/Phi-3-mini-4k-instruct"
|
| 25 |
|
| 26 |
-
# Update transformers library
|
| 27 |
-
!pip install --upgrade transformers
|
| 28 |
-
|
| 29 |
# Load model and tokenizer, with specific handling for the Phi-3 model
|
| 30 |
try:
|
| 31 |
logger.debug("Attempting to load the model and tokenizer")
|
|
|
|
| 23 |
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 24 |
MODEL_NAME = "microsoft/Phi-3-mini-4k-instruct"
|
| 25 |
|
|
|
|
|
|
|
|
|
|
| 26 |
# Load model and tokenizer, with specific handling for the Phi-3 model
|
| 27 |
try:
|
| 28 |
logger.debug("Attempting to load the model and tokenizer")
|