Wajahat698 commited on
Commit
99c0148
·
verified ·
1 Parent(s): e1f0c6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -510,7 +510,7 @@ if prompt :
510
  try:
511
  # Generate response using the agent executor
512
  output = agent_executor.invoke({
513
- "input": f"{prompt} MUST include & Be specific with numbers, dates, people, and dollar amounts $. Search and provide sources for all the results. Respond directly to the query without any introductory phrases or meta-commentary. Your response should be natural and read as if it's addressing the query immediately,without any preamble. Use creative techniques like metaphors, analogies, and juxtaposition to enhance the content. Interconnect ideas smoothly to create meaning for the reader.Write it as nicely flowing text and Create an active language headline. Not use colons in the sub-headers and use a creative technique in every headline and sub-header. Interweave the examples contextually and create the meaning for donors and beneficiaries.DO NOT CREATE TOo MANY HEADINGS IN IF ASKED TO WRITE ANNUAL REPORT Incase of annual report write in paragraphs provide also the example proof points, creative techniques used & heuristics used in sub heading .",
514
  "chat_history": st.session_state.chat_history
515
  })
516
  full_response = output["output"]
@@ -519,7 +519,7 @@ if prompt :
519
  # Display the response
520
  trust_tip = random.choice(trust_tips)
521
  suggestion = random.choice(suggestions)
522
- full_response += f"\n\n**Trust Tip**: {trust_tip}\n**Suggestion**: {suggestion}"
523
 
524
  st.write(full_response, unsafe_allow_html=True)
525
 
 
510
  try:
511
  # Generate response using the agent executor
512
  output = agent_executor.invoke({
513
+ "input": f"{prompt} must include & Be specific with numbers, dates, people, and $dollar amounts . Search and provide sources for all the results. Respond directly to the query without any introductory phrases or meta-commentary. Your response should be natural and read as if it's addressing the query immediately,without any preamble. Use creative techniques like metaphors, analogies, and juxtaposition to enhance the content. Interconnect ideas smoothly to create meaning for the reader.Write it as nicely flowing text and Create an active language headline. Not use colons in the sub-headers and use a creative technique in every headline and sub-header. Interweave the examples contextually and create the meaning for donors and beneficiaries.DO NOT CREATE TOo MANY HEADINGS IN IF ASKED TO WRITE ANNUAL REPORT Incase of annual report write in paragraphs provide headings for the example proof points, creative techniques used & heuristics in sub heading .",
514
  "chat_history": st.session_state.chat_history
515
  })
516
  full_response = output["output"]
 
519
  # Display the response
520
  trust_tip = random.choice(trust_tips)
521
  suggestion = random.choice(suggestions)
522
+ full_response += f"\n\n**Trust Tip**: {trust_tip} \n \n **Suggestion**: {suggestion}"
523
 
524
  st.write(full_response, unsafe_allow_html=True)
525