Spaces:
Sleeping
Sleeping
Update app.py
Browse filesChanged the output format of 'custom_qa_automation' function
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 |
|