Spaces:
Runtime error
Runtime error
Greg Thompson commited on
Commit ·
c2c7982
1
Parent(s): d6f5c10
Disable logging
Browse filesFiles changed (2)
100 unmodified lines101102103104105100 unmodified linesresponse_object = {'type': 'integer', 'data': student_response_arr[0]}# Uncomment to enable logging to Supabaseprepare_message_data_for_logging(message_data)return JSONResponse(content=response_object)100 unmodified lines101102103104105100 unmodified linesresponse_object = {'type': 'integer', 'data': student_response_arr[0]}# Uncomment to enable logging to Supabase# prepare_message_data_for_logging(message_data)return JSONResponse(content=response_object)
111 unmodified lines112113114111 unmodified linesprint(request)111 unmodified lines112113114115116117118119120121122123111 unmodified linesprint(request)json = b'{"message_data": {"message":{"_vnd":{"v1":{"author":{"id":57787919091,"name":"GT","type":"OWNER"},"card_uuid":null,"chat":{"assigned_to":{"id":"jhk151kl-hj42-3752-3hjk-h4jk6hjkk2","name":"Greg Thompson","type":"OPERATOR"},"contact_uuid":"j43hk26-2hjl-43jk-hnk2-k4ljl46j0ds09","inserted_at":"2022-07-05T04:00:34.033522Z","owner":"+57787919091","permalink":"https://app.turn.io/c/4kl209sd0-a7b8-2hj3-8563-3hu4a89b32","state":"OPEN","state_reason":"Re-opened by inbound message.","unread_count":14,"updated_at":"2023-01-10T02:37:28.487319Z","uuid":"4kl209sd0-a7b8-2hj3-8563-3hu4a89b32"},"direction":"inbound","faq_uuid":null,"in_reply_to":null,"inserted_at":"2023-01-10T02:37:28.477940Z","labels":[{"confidence":0.506479332,"metadata":{"nlu":{"confidence":0.506479332,"intent":"question","model_name":"nlu-general-spacy-ngrams-20191014"}},"uuid":"ha7890s2k-hjk2-2476-s8d9-fh9779a8a9ds","value":"Unclassified"}],"last_status":null,"last_status_timestamp":null,"on_fallback_channel":false,"rendered_content":null,"uuid":"s8df79zhws-h89s-hj23-7s8d-thb248d9bh2qn"}},"from":57787919091,"id":"hsjkthzZGehkzs09sijWA3","text":{"body":"I dont know"},"timestamp":1673318248,"type":"text"},"type":"message"}}\n'# "8, 9, 10" > "8,9,10"request = requests.post(url='http://localhost:7860/nlu',data=json).json()print(request)
app.py+1-1
scripts/make_request.py+9