Samuel L Meyers
commited on
Commit
·
2b31400
1
Parent(s):
fe93a22
Fixed ports
Browse files- Dockerfile +1 -1
- code/app.py +1 -1
Dockerfile
CHANGED
@@ -11,4 +11,4 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
11 |
|
12 |
COPY . .
|
13 |
|
14 |
-
CMD ["python", "app.py"]
|
|
|
11 |
|
12 |
COPY . .
|
13 |
|
14 |
+
CMD ["python", "../app.py"]
|
code/app.py
CHANGED
@@ -30,4 +30,4 @@ with gr.Blocks() as demo:
|
|
30 |
txt2img_btn.click(fn=gradio_txt2img, inputs=txt2img_prompt, outputs=txt2img_out, queue=True, api_name="gradio_txt2img")
|
31 |
txt2b64_btn.click(fn=api_txt2base64, inputs=txt2b64_prompt, outputs=txt2b64_out, queue=True, api_name="gradio_txt2b64")
|
32 |
|
33 |
-
demo.launch()
|
|
|
30 |
txt2img_btn.click(fn=gradio_txt2img, inputs=txt2img_prompt, outputs=txt2img_out, queue=True, api_name="gradio_txt2img")
|
31 |
txt2b64_btn.click(fn=api_txt2base64, inputs=txt2b64_prompt, outputs=txt2b64_out, queue=True, api_name="gradio_txt2b64")
|
32 |
|
33 |
+
demo.launch(server_name="0.0.0.0", server_port=7860)
|