Spaces:
Sleeping
Sleeping
fix egl
Browse files- Dockerfile +0 -1
- app.py +1 -1
Dockerfile
CHANGED
|
@@ -105,7 +105,6 @@ RUN cd /tmp && pip install -r requirements.txt
|
|
| 105 |
RUN chmod 777 $HOME
|
| 106 |
ENV TRANSFORMERS_CACHE=/tmp
|
| 107 |
ENV MPLCONFIGDIR=/tmp
|
| 108 |
-
ENV PYOPENGL_PLATFORM=egl
|
| 109 |
|
| 110 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 111 |
COPY --chown=user . $HOME/app
|
|
|
|
| 105 |
RUN chmod 777 $HOME
|
| 106 |
ENV TRANSFORMERS_CACHE=/tmp
|
| 107 |
ENV MPLCONFIGDIR=/tmp
|
|
|
|
| 108 |
|
| 109 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 110 |
COPY --chown=user . $HOME/app
|
app.py
CHANGED
|
@@ -12,7 +12,7 @@ from download_deps import download_embeddings
|
|
| 12 |
import random
|
| 13 |
# DO NOT initialize CUDA here
|
| 14 |
DEFAULT_TEXT = "do it slower"
|
| 15 |
-
|
| 16 |
|
| 17 |
class MotionEditor:
|
| 18 |
def __init__(self):
|
|
|
|
| 12 |
import random
|
| 13 |
# DO NOT initialize CUDA here
|
| 14 |
DEFAULT_TEXT = "do it slower"
|
| 15 |
+
os.environ["PYOPENGL_PLATFORM"] = "egl"
|
| 16 |
|
| 17 |
class MotionEditor:
|
| 18 |
def __init__(self):
|