Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def predict(text, model, tokenizer):
|
|
22 |
def main():
|
23 |
model_name = os.getenv('Erfan11/Neuracraft')
|
24 |
if model_name is None:
|
25 |
-
raise ValueError("
|
26 |
|
27 |
model = load_model(model_name)
|
28 |
tokenizer = load_tokenizer(model_name)
|
|
|
22 |
def main():
|
23 |
model_name = os.getenv('Erfan11/Neuracraft')
|
24 |
if model_name is None:
|
25 |
+
raise ValueError("Erfan11/Neuracraft environment variable not set or is None")
|
26 |
|
27 |
model = load_model(model_name)
|
28 |
tokenizer = load_tokenizer(model_name)
|