used a filter instead of .join() twice
Browse files
app.py
CHANGED
@@ -34,8 +34,7 @@ def output_list(output: list):
|
|
34 |
Grabs the output from the first position in list,
|
35 |
and returns it as a string as a response
|
36 |
"""
|
37 |
-
|
38 |
-
cleaned_output = ' '.join(text.split())
|
39 |
|
40 |
return cleaned_output
|
41 |
|
|
|
34 |
Grabs the output from the first position in list,
|
35 |
and returns it as a string as a response
|
36 |
"""
|
37 |
+
cleaned_output = ' '.join(filter(None, output))
|
|
|
38 |
|
39 |
return cleaned_output
|
40 |
|