Spaces:
Runtime error
Runtime error
jgerbscheid
commited on
Commit
•
5add455
1
Parent(s):
4c9bba2
fixed type error in print
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ def annotate_file(file_objects, model_type):
|
|
9 |
generated_charfiles = []
|
10 |
str1 = "Starting processing of files."
|
11 |
# pad1 = math.floor((os.get_terminal_size().columns - len(str1)) / 2) * "="
|
12 |
-
pad1 = 30
|
13 |
print(pad1 + "Starting processing of files." + pad1)
|
14 |
for i, file_obj in enumerate(file_objects):
|
15 |
target_filepath = f"/tmp/characteristicpoints_{i}.csv"
|
@@ -17,7 +17,7 @@ def annotate_file(file_objects, model_type):
|
|
17 |
dijkprofile_annotator.annotate(file_obj.name, target_filepath, device='cpu')
|
18 |
generated_charfiles.append(target_filepath)
|
19 |
print(f" finished processing: {file_obj.name}! saved to : {target_filepath}")
|
20 |
-
print(" ", "-" * (pad1 - 5))
|
21 |
|
22 |
|
23 |
print("finished with all processing!")
|
|
|
9 |
generated_charfiles = []
|
10 |
str1 = "Starting processing of files."
|
11 |
# pad1 = math.floor((os.get_terminal_size().columns - len(str1)) / 2) * "="
|
12 |
+
pad1 = "30"
|
13 |
print(pad1 + "Starting processing of files." + pad1)
|
14 |
for i, file_obj in enumerate(file_objects):
|
15 |
target_filepath = f"/tmp/characteristicpoints_{i}.csv"
|
|
|
17 |
dijkprofile_annotator.annotate(file_obj.name, target_filepath, device='cpu')
|
18 |
generated_charfiles.append(target_filepath)
|
19 |
print(f" finished processing: {file_obj.name}! saved to : {target_filepath}")
|
20 |
+
print(" ", "-" * (int(pad1) - 5))
|
21 |
|
22 |
|
23 |
print("finished with all processing!")
|