Vishwas1 commited on
Commit
8c6b785
1 Parent(s): 5931656

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -29,7 +29,7 @@ def text_generate(prompt):
29
  responsecodeblock=data_str[0]['generated_text']
30
  print(responsecodeblock)
31
  slack_msg="Supplied Prompt was :"+data["inputs"]+"\n\n"
32
- slack_msg = slack_msg+"Response receievd was : \n\n"
33
  '''
34
  for i in range(4):
35
  slack_msg = slack_msg+data_str["completions"][i]["completion"]+"\n\n"
@@ -50,7 +50,7 @@ def index():
50
  def handle_event():
51
  # Handle the event here
52
  event=request.json['type']
53
-
54
  if event=='url_verification':
55
  # Respond to the challenge request with a 200 OK HTTP status code
56
  # and the value of the challenge parameter in the response body
 
29
  responsecodeblock=data_str[0]['generated_text']
30
  print(responsecodeblock)
31
  slack_msg="Supplied Prompt was :"+data["inputs"]+"\n\n"
32
+ slack_msg = slack_msg+"Response received was : \n\n"
33
  '''
34
  for i in range(4):
35
  slack_msg = slack_msg+data_str["completions"][i]["completion"]+"\n\n"
 
50
  def handle_event():
51
  # Handle the event here
52
  event=request.json['type']
53
+ print("Event Is:"+event)
54
  if event=='url_verification':
55
  # Respond to the challenge request with a 200 OK HTTP status code
56
  # and the value of the challenge parameter in the response body