Spaces:
Paused
Paused
Upload folder using huggingface_hub
Browse files- 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 |
|