Spaces:
Sleeping
Sleeping
added a line to evaluate to see if no filepath will print correctly
Browse files
app.py
CHANGED
|
@@ -302,6 +302,9 @@ def evaluate_model(username, file):
|
|
| 302 |
# print(f"HELLO: {hello}")
|
| 303 |
# import
|
| 304 |
sectors_model = import_and_run_function(file, "evaluate", local_file_path)
|
|
|
|
|
|
|
|
|
|
| 305 |
try:
|
| 306 |
os.remove(local_file_path)
|
| 307 |
except Exception as e:
|
|
|
|
| 302 |
# print(f"HELLO: {hello}")
|
| 303 |
# import
|
| 304 |
sectors_model = import_and_run_function(file, "evaluate", local_file_path)
|
| 305 |
+
if sectors_model == None:
|
| 306 |
+
return None
|
| 307 |
+
|
| 308 |
try:
|
| 309 |
os.remove(local_file_path)
|
| 310 |
except Exception as e:
|