Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,13 +48,13 @@ class WebhookPostTool(Tool):
|
|
| 48 |
"description": "The url to send the payload to"
|
| 49 |
},
|
| 50 |
"payload": {
|
| 51 |
-
"type": "
|
| 52 |
"description": "The message/body nto send to the webhook"
|
| 53 |
}
|
| 54 |
}
|
| 55 |
output_type = "string" # Must be one of SmolAgents authorized types
|
| 56 |
|
| 57 |
-
def forward(self, webhook_url: str, payload:
|
| 58 |
try:
|
| 59 |
response = requests.post(webhook_url, json=payload)
|
| 60 |
return response.text
|
|
|
|
| 48 |
"description": "The url to send the payload to"
|
| 49 |
},
|
| 50 |
"payload": {
|
| 51 |
+
"type": "string",
|
| 52 |
"description": "The message/body nto send to the webhook"
|
| 53 |
}
|
| 54 |
}
|
| 55 |
output_type = "string" # Must be one of SmolAgents authorized types
|
| 56 |
|
| 57 |
+
def forward(self, webhook_url: str, payload: str) -> str:
|
| 58 |
try:
|
| 59 |
response = requests.post(webhook_url, json=payload)
|
| 60 |
return response.text
|