AmanChintada2426 commited on
Commit
4dd1345
·
verified ·
1 Parent(s): 9c56a6f

Update app.py

Browse files

Changed the output format of 'custom_qa_automation' function

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -219,7 +219,7 @@ def custom_qa_automation(text: str, custom_question: str):
219
  details = "No additional details provided."
220
 
221
  # Format the answer with the "Comments:" tag in bold and on a new line
222
- formatted_answer = f"**{custom_question}** {main_answer}\n\n**Comments:** {details}"
223
 
224
  return GenerateResponse(text=formatted_answer)
225
 
 
219
  details = "No additional details provided."
220
 
221
  # Format the answer with the "Comments:" tag in bold and on a new line
222
+ formatted_answer = f"<p><b>Response:</b> {main_answer}</p><p><b>Comment:</b> {details}</p>" #f"**{custom_question}** {main_answer}\n\n**Comments:** {details}"
223
 
224
  return GenerateResponse(text=formatted_answer)
225