Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ from transformers import T5ForConditionalGeneration, T5Tokenizer
|
|
| 4 |
import torch
|
| 5 |
|
| 6 |
# Define the model path and check if it exists
|
| 7 |
-
model_path = "Cegil/code_generation" # Update to your model's actual path
|
| 8 |
if not os.path.exists(model_path):
|
| 9 |
raise FileNotFoundError(f"Model path '{model_path}' does not exist.")
|
| 10 |
|
|
|
|
| 4 |
import torch
|
| 5 |
|
| 6 |
# Define the model path and check if it exists
|
| 7 |
+
model_path = "Cegil/code_generation/pytorch_model.bin" # Update to your model's actual path
|
| 8 |
if not os.path.exists(model_path):
|
| 9 |
raise FileNotFoundError(f"Model path '{model_path}' does not exist.")
|
| 10 |
|