9 lines
416 B
Docker
9 lines
416 B
Docker
|
|
FROM facefusion/facefusion:3.5.0-cpu
|
||
|
|
|
||
|
|
# Patch content_analyser.py to disable NSFW filter
|
||
|
|
RUN sed -i '197s/.*/\treturn False # Patched: NSFW filter disabled/' /facefusion/facefusion/content_analyser.py && \
|
||
|
|
grep -q 'return False.*Patched' /facefusion/facefusion/content_analyser.py || (echo "ERROR: Patch failed!" && exit 1)
|
||
|
|
|
||
|
|
# Verify patch was applied
|
||
|
|
RUN echo "NSFW filter patch successfully applied to image"
|