Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -176,7 +176,7 @@ if (runModel=='1'):
|
|
| 176 |
model_path = './' + modelNameToUse + '_model'
|
| 177 |
tokenizer_path = './' + modelNameToUse + '_tokenizer'
|
| 178 |
|
| 179 |
-
if os.path.isdir(model_path)
|
| 180 |
print(f"The directory of model {model_path} exists.")
|
| 181 |
print("Directory contents:", os.listdir(model_path))
|
| 182 |
|
|
|
|
| 176 |
model_path = './' + modelNameToUse + '_model'
|
| 177 |
tokenizer_path = './' + modelNameToUse + '_tokenizer'
|
| 178 |
|
| 179 |
+
if os.path.isdir(model_path) and os.path.isdir(tokenizer_path):
|
| 180 |
print(f"The directory of model {model_path} exists.")
|
| 181 |
print("Directory contents:", os.listdir(model_path))
|
| 182 |
|