Erfan11 commited on
Commit
83ed8ca
1 Parent(s): 3e04185

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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("MODEL_PATH environment variable not set or is None")
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)