Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -93,7 +93,7 @@ async def embed_text(request: TextRequest, background_tasks: BackgroundTasks):
|
|
| 93 |
)
|
| 94 |
|
| 95 |
# Check for webhook URL and add the background task
|
| 96 |
-
webhook_url =
|
| 97 |
if webhook_url:
|
| 98 |
payload = {
|
| 99 |
"text": request.text,
|
|
|
|
| 93 |
)
|
| 94 |
|
| 95 |
# Check for webhook URL and add the background task
|
| 96 |
+
webhook_url = os.environ.get("WEBHOOK_URL")
|
| 97 |
if webhook_url:
|
| 98 |
payload = {
|
| 99 |
"text": request.text,
|