sabssag commited on
Commit
fb85da6
·
verified ·
1 Parent(s): d947d8e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -27,6 +27,8 @@ print("Model Path:", model_path)
27
  # Verify that the directory exists and contains the necessary files
28
  if not os.path.exists(model_path):
29
  st.error(f"Model directory {model_path} does not exist or is incorrect.")
 
 
30
  else:
31
  # Load the tokenizer and model from the extracted directory
32
  tokenizer = BartTokenizer.from_pretrained(model_path)
 
27
  # Verify that the directory exists and contains the necessary files
28
  if not os.path.exists(model_path):
29
  st.error(f"Model directory {model_path} does not exist or is incorrect.")
30
+ # Print out contents of model_dir for further debugging
31
+ print("Contents of model_dir:", os.listdir(model_dir))
32
  else:
33
  # Load the tokenizer and model from the extracted directory
34
  tokenizer = BartTokenizer.from_pretrained(model_path)