vedsadani commited on
Commit
d3420db
1 Parent(s): 72fdc64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ def echo(message, history):
47
  Rely on information derived from these tickets to address queries. Feel free to seek clarification through relevant questions."""
48
  message= context_prompt + "User Query: "+ message + "If asked about Root cause analysis (rca), give only one possible awnser and then give the steps to resolve in the exact format which is :- The steps to resolve could be:"
49
  result=qa({"question":message})
50
- bold_answer= "<b>" + result['answer'] + "</b>"
51
  return bold_answer + "<br></br>" +'1. ' + str(result["source_documents"][0]) +"<br>" + '2. ' + str(result["source_documents"][1]) + "<br>" + "3. " + str(result["source_documents"][2])
52
 
53
  def echo_agent(message, history):
 
47
  Rely on information derived from these tickets to address queries. Feel free to seek clarification through relevant questions."""
48
  message= context_prompt + "User Query: "+ message + "If asked about Root cause analysis (rca), give only one possible awnser and then give the steps to resolve in the exact format which is :- The steps to resolve could be:"
49
  result=qa({"question":message})
50
+ bold_answer= "<b>" + result['answer'].split('Helpful Answer:')[-1] + "</b>"
51
  return bold_answer + "<br></br>" +'1. ' + str(result["source_documents"][0]) +"<br>" + '2. ' + str(result["source_documents"][1]) + "<br>" + "3. " + str(result["source_documents"][2])
52
 
53
  def echo_agent(message, history):