Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,6 +22,7 @@ def search_knowledge(prompt):
|
|
22 |
slack_msg= "Here are knowledge articles related to "+prompt
|
23 |
try:
|
24 |
searchstring="Find {"+prompt+"}"
|
|
|
25 |
information = sf.search(searchstring)
|
26 |
df = pd.DataFrame(information['searchRecords'])
|
27 |
print(df)
|
@@ -39,8 +40,8 @@ def index():
|
|
39 |
def handle_event():
|
40 |
# Handle the event here
|
41 |
event=request.json['type']
|
42 |
-
print(event)
|
43 |
-
print(request.json['event'] ['text'])
|
44 |
if event=='url_verification':
|
45 |
# Respond to the challenge request with a 200 OK HTTP status code
|
46 |
# and the value of the challenge parameter in the response body
|
|
|
22 |
slack_msg= "Here are knowledge articles related to "+prompt
|
23 |
try:
|
24 |
searchstring="Find {"+prompt+"}"
|
25 |
+
print(searchstring)
|
26 |
information = sf.search(searchstring)
|
27 |
df = pd.DataFrame(information['searchRecords'])
|
28 |
print(df)
|
|
|
40 |
def handle_event():
|
41 |
# Handle the event here
|
42 |
event=request.json['type']
|
43 |
+
print("event is"+event)
|
44 |
+
print("request is"+ request.json['event'] ['text'])
|
45 |
if event=='url_verification':
|
46 |
# Respond to the challenge request with a 200 OK HTTP status code
|
47 |
# and the value of the challenge parameter in the response body
|