bradartigue commited on
Commit
7e27288
1 Parent(s): c1c5da9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -72,7 +72,7 @@ def process_query(query, chat_history, systemMessage, emotions):
72
  #Replace/filter out any prepended strings from LLM response
73
  #Sometimes we have issues that the LLM writes these following strings before answer. Use if needed.
74
  llm_response = generatedResponse[0]["text"].replace("Answer:", "").replace("System:", "").lstrip()
75
-
76
 
77
  #NOW SEND RESPONSE TO GET TAGGED w/ Emotions and Expressions
78
  if emotions:
@@ -157,6 +157,9 @@ def handle_query():
157
  "matchedContext": "",
158
  "conversationPayload": ""
159
  }
 
 
 
160
  return jsonify(serialized_result), 200
161
 
162
  # Helper Functions
 
72
  #Replace/filter out any prepended strings from LLM response
73
  #Sometimes we have issues that the LLM writes these following strings before answer. Use if needed.
74
  llm_response = generatedResponse[0]["text"].replace("Answer:", "").replace("System:", "").lstrip()
75
+ print(llm_response)
76
 
77
  #NOW SEND RESPONSE TO GET TAGGED w/ Emotions and Expressions
78
  if emotions:
 
157
  "matchedContext": "",
158
  "conversationPayload": ""
159
  }
160
+
161
+ print(serialized_result)
162
+
163
  return jsonify(serialized_result), 200
164
 
165
  # Helper Functions