joined the output again in output_list
Browse files
app.py
CHANGED
@@ -34,10 +34,10 @@ 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 |
-
|
39 |
|
40 |
-
return
|
41 |
|
42 |
# Place just input pass and return generation output
|
43 |
def llama_generation(input_text: str,
|
|
|
34 |
Grabs the output from the first position in list,
|
35 |
and returns it as a string as a response
|
36 |
"""
|
37 |
+
text = " ".join(output)
|
38 |
+
cleaned_output = ' '.join(text.split())
|
39 |
|
40 |
+
return cleaned_output
|
41 |
|
42 |
# Place just input pass and return generation output
|
43 |
def llama_generation(input_text: str,
|