richardr1126 commited on
Commit
189817d
·
1 Parent(s): 5d1c407
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -174,8 +174,8 @@ def generate(input_message: str, db_info="", temperature=0.2, top_p=0.9, top_k=0
174
 
175
  formatted_text = format(response_text) if format_sql else response_text
176
  if (num_return_sequences > 1):
177
- formatted_text = formatted_text.replace("\n", "").replace("\t", "").strip()
178
-
179
  responses.append(formatted_text)
180
 
181
  # Concat responses to be a single string seperated by a newline
 
174
 
175
  formatted_text = format(response_text) if format_sql else response_text
176
  if (num_return_sequences > 1):
177
+ formatted_text = formatted_text.replace("\n", " ").replace("\t", " ").strip()
178
+
179
  responses.append(formatted_text)
180
 
181
  # Concat responses to be a single string seperated by a newline