Reyad-Ahmmed commited on
Commit
05d64ab
·
verified ·
1 Parent(s): 9485b96

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -183,10 +183,12 @@ if (runModel=='1'):
183
  print(f"The directory of tokenizer{tokenizer_path} exists.")
184
  print("Directory contents:", os.listdir(tokenizer_path))
185
  else:
186
- print(f"The directory {path} does not exist. Creating it now...")
 
187
  os.makedirs(model_path, exist_ok=True) # Create the directory
188
  os.makedirs(tokenizer_path, exist_ok=True) # Create the directory
189
- print(f"Directory {path} created successfully.")
 
190
 
191
  # Save the model and tokenizer
192
  model.save_pretrained(model_path)
 
183
  print(f"The directory of tokenizer{tokenizer_path} exists.")
184
  print("Directory contents:", os.listdir(tokenizer_path))
185
  else:
186
+ print(f"The directory {model_path} does not exist. Creating it now...")
187
+ print(f"The directory {tokenizer_path} does not exist. Creating it now...")
188
  os.makedirs(model_path, exist_ok=True) # Create the directory
189
  os.makedirs(tokenizer_path, exist_ok=True) # Create the directory
190
+ print(f"Directory {model_path} created successfully.")
191
+ print(f"Directory {tokenizer_path} created successfully.")
192
 
193
  # Save the model and tokenizer
194
  model.save_pretrained(model_path)