Leon4gr45 commited on
Commit
de81fde
·
verified ·
1 Parent(s): 97a370c

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -34,6 +34,9 @@ RUN uv pip install --system /app/external/mkslides
34
  # Copy the rest of the application
35
  COPY . .
36
 
 
 
 
37
  # Change ownership to non-root user
38
  RUN chown -R user:user /app
39
 
 
34
  # Copy the rest of the application
35
  COPY . .
36
 
37
+ # Patch Gradio to avoid AttributeError: __provides__ with zope.interface
38
+ RUN python -c "import os, gradio; path=os.path.join(os.path.dirname(gradio.__file__), 'components', 'base.py'); c=open(path).read(); open(path, 'w').write(c.replace('if callable(getattr(self, value))', 'if value != \"__provides__\" and callable(getattr(self, value))'))"
39
+
40
  # Change ownership to non-root user
41
  RUN chown -R user:user /app
42