Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ class TextGen(nn.Module):
|
|
52 |
|
53 |
def load_model():
|
54 |
# Get the directory where the model files are stored
|
55 |
-
model_dir = Path("
|
56 |
|
57 |
# Load configuration
|
58 |
with open(model_dir / 'model_config.json', 'r') as f:
|
|
|
52 |
|
53 |
def load_model():
|
54 |
# Get the directory where the model files are stored
|
55 |
+
model_dir = Path("/home/user/app/") # This is the path in HF Spaces
|
56 |
|
57 |
# Load configuration
|
58 |
with open(model_dir / 'model_config.json', 'r') as f:
|