Spaces:
Build error
Build error
Commit
·
08e5dcd
1
Parent(s):
c633b82
remove user
Browse files- Dockerfile +2 -2
- app/services/webhook_handler.py +10 -9
Dockerfile
CHANGED
@@ -31,8 +31,8 @@ RUN chmod +x /code/start.sh
|
|
31 |
RUN mkdir -p /code/uploaded_videos /code/output_frames \
|
32 |
&& chown -R 1000:1000 /code
|
33 |
|
34 |
-
# Switch to non-root user
|
35 |
-
USER 1000
|
36 |
|
37 |
# Expose the application port
|
38 |
EXPOSE 8000
|
|
|
31 |
RUN mkdir -p /code/uploaded_videos /code/output_frames \
|
32 |
&& chown -R 1000:1000 /code
|
33 |
|
34 |
+
# # Switch to non-root user
|
35 |
+
# USER 1000
|
36 |
|
37 |
# Expose the application port
|
38 |
EXPOSE 8000
|
app/services/webhook_handler.py
CHANGED
@@ -48,12 +48,13 @@ user_chats = {}
|
|
48 |
# logger.info(f"Webhook processing completed - Processed: {processed_count}, Errors: {error_count}")
|
49 |
# return JSONResponse(content=response_data, status_code=status.HTTP_200_OK)
|
50 |
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
|
|
|
48 |
# logger.info(f"Webhook processing completed - Processed: {processed_count}, Errors: {error_count}")
|
49 |
# return JSONResponse(content=response_data, status_code=status.HTTP_200_OK)
|
50 |
|
51 |
+
|
52 |
+
# async def verify_webhook(request: Request):
|
53 |
+
# mode = request.query_params.get('hub.mode')
|
54 |
+
# token = request.query_params.get('hub.verify_token')
|
55 |
+
# challenge = request.query_params.get('hub.challenge')
|
56 |
+
|
57 |
+
# if mode == 'subscribe' and token == 'test':
|
58 |
+
# return Response(content=challenge, media_type="text/plain")
|
59 |
+
# else:
|
60 |
+
# raise HTTPException(status_code=403, detail="Verification failed")
|