cstr commited on
Commit
1207ab8
·
verified ·
1 Parent(s): 7e167d4

Fix Space shared library path and Gradio launch warning

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -0
  2. app.py +0 -1
Dockerfile CHANGED
@@ -30,6 +30,7 @@ RUN chmod +x /space/start.sh && \
30
  chown -R app:app /space /opt/crispasr /models /cache
31
 
32
  ENV PATH=/opt/crispasr/build/bin:$PATH
 
33
  ENV CRISPASR_SERVER_URL=http://127.0.0.1:8080
34
  ENV GRADIO_SERVER_NAME=0.0.0.0
35
  ENV GRADIO_SERVER_PORT=7860
 
30
  chown -R app:app /space /opt/crispasr /models /cache
31
 
32
  ENV PATH=/opt/crispasr/build/bin:$PATH
33
+ ENV LD_LIBRARY_PATH=/opt/crispasr/build/src:/opt/crispasr/build/bin:${LD_LIBRARY_PATH}
34
  ENV CRISPASR_SERVER_URL=http://127.0.0.1:8080
35
  ENV GRADIO_SERVER_NAME=0.0.0.0
36
  ENV GRADIO_SERVER_PORT=7860
app.py CHANGED
@@ -130,5 +130,4 @@ if __name__ == "__main__":
130
  demo.launch(
131
  server_name=os.environ.get("GRADIO_SERVER_NAME", "0.0.0.0"),
132
  server_port=int(os.environ.get("GRADIO_SERVER_PORT", "7860")),
133
- show_api=False,
134
  )
 
130
  demo.launch(
131
  server_name=os.environ.get("GRADIO_SERVER_NAME", "0.0.0.0"),
132
  server_port=int(os.environ.get("GRADIO_SERVER_PORT", "7860")),
 
133
  )