Bind to all IPs
Browse files- Dockerfile +2 -1
- app.py +1 -1
Dockerfile
CHANGED
@@ -4,6 +4,7 @@ FROM python:3.9
|
|
4 |
ARG DEBIAN_FRONTEND=noninteractive
|
5 |
ENV TZ=Europe/Paris
|
6 |
RUN apt-get update && apt-get install -y \
|
|
|
7 |
git \
|
8 |
jq \
|
9 |
make build-essential libssl-dev zlib1g-dev \
|
@@ -40,4 +41,4 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
40 |
#ENV GRADIO_THEME huggingface
|
41 |
#ENV SYSTEM spaces
|
42 |
|
43 |
-
CMD ["python", "app.py"]
|
|
|
4 |
ARG DEBIAN_FRONTEND=noninteractive
|
5 |
ENV TZ=Europe/Paris
|
6 |
RUN apt-get update && apt-get install -y \
|
7 |
+
vim \
|
8 |
git \
|
9 |
jq \
|
10 |
make build-essential libssl-dev zlib1g-dev \
|
|
|
41 |
#ENV GRADIO_THEME huggingface
|
42 |
#ENV SYSTEM spaces
|
43 |
|
44 |
+
#CMD ["python", "app.py"]
|
app.py
CHANGED
@@ -4,4 +4,4 @@ def greet(name):
|
|
4 |
return "Hello " + name + "!"
|
5 |
|
6 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
-
demo.launch()
|
|
|
4 |
return "Hello " + name + "!"
|
5 |
|
6 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
+
demo.launch(server_name="0.0.0.0")
|