Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import zipfile
|
|
| 6 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 7 |
import torch
|
| 8 |
|
| 9 |
-
model_dir = Path(
|
| 10 |
|
| 11 |
# Gracefully fail if model not trained yet
|
| 12 |
if not model_dir.exists():
|
|
|
|
| 6 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 7 |
import torch
|
| 8 |
|
| 9 |
+
model_dir = Path(__file__).parent / "trained_model"
|
| 10 |
|
| 11 |
# Gracefully fail if model not trained yet
|
| 12 |
if not model_dir.exists():
|