sandz7 commited on
Commit
a14c9f3
Β·
1 Parent(s): f123c86

joined the output again in output_list

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- output_text = " ".join(output)
38
- clean_output = output_text.strip(" ")
39
 
40
- return clean_output
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,