Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ def convert(file):
|
|
9 |
obj = joblib.load(in_file)
|
10 |
|
11 |
if "." in in_file.name:
|
12 |
-
out_file = in_file.name.split(".")[:-1]
|
13 |
else:
|
14 |
out_file = in_file.name
|
15 |
|
|
|
9 |
obj = joblib.load(in_file)
|
10 |
|
11 |
if "." in in_file.name:
|
12 |
+
out_file = ".".join(in_file.name.split(".")[:-1])
|
13 |
else:
|
14 |
out_file = in_file.name
|
15 |
|