Spaces:
Runtime error
Runtime error
Update app.py
Browse files390 unmodified lines391392393394395396397195 unmodified lines5935945955965975985991 unmodified line601602603604605606390 unmodified lines**GENERAL QUERIES:**- For general content like blogs or reports always refer knowledge base first, focus on the overall flow and structure without explicitly mentioning trust metrics unless requested.- Help users find trust builders using knowledge base"""195 unmodified linestry:# Generate response using the agent executoroutput = agent_executor.invoke({"input": f"{prompt} .Follow the guidelines please .Handle problematic text (Usually it is related to numbers and text nearby )clean it up so that it is readable and properly formatted for display in a web application. ","chat_history": st.session_state.chat_history})1 unmodified line#full_response= replace_terms(full_response)cleaned_text = clean_text(full_response)#cleaned_text = re.sub(r'</span>', '', cleaned_text)#cleaned_text = re.sub(r'<span[^>]*>', '', cleaned_text)390 unmodified lines391392393394395396397195 unmodified lines5935945955965975985991 unmodified line601602603604605606607608390 unmodified lines**GENERAL QUERIES:**- For general content like blogs or reports always refer knowledge base first, focus on the overall flow and structure without explicitly mentioning trust metrics unless requested."""195 unmodified linestry:# Generate response using the agent executoroutput = agent_executor.invoke({"input": f"{prompt} .Follow the guidelines please .Handle problematic text (Usually it is related to numbers, figures and text nearby )clean it up make spaced so that it is readable and properly formatted for display in a web application. ","chat_history": st.session_state.chat_history})1 unmodified line#full_response= replace_terms(full_response)cleaned_text = clean_text(full_response)cleaned_text = re.sub(r'<[^>]*>', '', cleaned_text)#cleaned_text = re.sub(r'</span>', '', cleaned_text)#cleaned_text = re.sub(r'<span[^>]*>', '', cleaned_text)
app.py+4-2