david-oplatka commited on
Commit
a06f13b
1 Parent(s): 8253615

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -29,7 +29,7 @@ amp_api_key = os.getenv('AMPLITUDE_TOKEN')
29
  def thumbs_feedback(feedback, **kwargs):
30
  print(f'Debug: Feedback Received {feedback["score"]} FROM user question {kwargs.get("prompt", "No user input")} AND chat response {kwargs.get("response", "No chat response")}')
31
 
32
- Send feedback to Amplitude Analytics
33
  data = {
34
  "api_key": amp_api_key,
35
  "events": [{
@@ -156,7 +156,7 @@ def launch_bot():
156
  st.session_state.messages.append(message)
157
  st.markdown(res)
158
 
159
- Send query and response to Amplitude Analytics
160
  data = {
161
  "api_key": amp_api_key,
162
  "events": [{
 
29
  def thumbs_feedback(feedback, **kwargs):
30
  print(f'Debug: Feedback Received {feedback["score"]} FROM user question {kwargs.get("prompt", "No user input")} AND chat response {kwargs.get("response", "No chat response")}')
31
 
32
+ # Send feedback to Amplitude Analytics
33
  data = {
34
  "api_key": amp_api_key,
35
  "events": [{
 
156
  st.session_state.messages.append(message)
157
  st.markdown(res)
158
 
159
+ # Send query and response to Amplitude Analytics
160
  data = {
161
  "api_key": amp_api_key,
162
  "events": [{