Spaces:
Running
on
Zero
Running
on
Zero
fda
Browse files- routers/webhook.py +7 -7
routers/webhook.py
CHANGED
@@ -135,13 +135,13 @@ async def webhook(request: Request):
|
|
135 |
|
136 |
#
|
137 |
if DEBUG==0:
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
|
146 |
logger.info("Received Headers: %s", received_headers)
|
147 |
logger.info("Received Body: %s", body.decode("utf-8"))
|
|
|
135 |
|
136 |
#
|
137 |
if DEBUG==0:
|
138 |
+
proc = subprocess.Popen(
|
139 |
+
["make", "runbabyagi", thread_name],
|
140 |
+
stdin=subprocess.PIPE,
|
141 |
+
stdout=subprocess.PIPE,
|
142 |
+
stderr=subprocess.PIPE,
|
143 |
+
text=True,
|
144 |
+
)
|
145 |
|
146 |
logger.info("Received Headers: %s", received_headers)
|
147 |
logger.info("Received Body: %s", body.decode("utf-8"))
|