Update test_webhook_and_start.py
Browse files
test_webhook_and_start.py
CHANGED
|
@@ -9,7 +9,7 @@ import os
|
|
| 9 |
from http.client import HTTPConnection
|
| 10 |
|
| 11 |
# Configure logging to write to both file and console
|
| 12 |
-
LOG_FILE = "/
|
| 13 |
os.makedirs(os.path.dirname(LOG_FILE), exist_ok=True)
|
| 14 |
logging.basicConfig(
|
| 15 |
level=logging.INFO,
|
|
@@ -22,8 +22,8 @@ logging.basicConfig(
|
|
| 22 |
logger = logging.getLogger(__name__)
|
| 23 |
|
| 24 |
# Base URL of your Hugging Face Space or local server
|
| 25 |
-
BASE_URL
|
| 26 |
-
WEBHOOK_SECRET
|
| 27 |
|
| 28 |
@pytest.fixture
|
| 29 |
def webhook_url():
|
|
|
|
| 9 |
from http.client import HTTPConnection
|
| 10 |
|
| 11 |
# Configure logging to write to both file and console
|
| 12 |
+
LOG_FILE = "/pipecat/test.log"
|
| 13 |
os.makedirs(os.path.dirname(LOG_FILE), exist_ok=True)
|
| 14 |
logging.basicConfig(
|
| 15 |
level=logging.INFO,
|
|
|
|
| 22 |
logger = logging.getLogger(__name__)
|
| 23 |
|
| 24 |
# Base URL of your Hugging Face Space or local server
|
| 25 |
+
BASE_URL="https://deadmon-pipecat.hf.space/webhook" # Replace with your endpoint
|
| 26 |
+
WEBHOOK_SECRET="eW91ci1zZWNyZXQtc3RyaW5n" # Base64-encoded secret
|
| 27 |
|
| 28 |
@pytest.fixture
|
| 29 |
def webhook_url():
|