Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 {
|
|
|
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 {
|
|
|
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)
|