authetication
Browse files- Dockerfile +0 -1
- main_noweb.py +4 -3
Dockerfile
CHANGED
@@ -45,7 +45,6 @@ ENV HOME=/home/user \
|
|
45 |
PYTHONUNBUFFERED=1 \
|
46 |
GRADIO_ALLOW_FLAGGING=never \
|
47 |
GRADIO_NUM_PORTS=1 \
|
48 |
-
GRADIO_SERVER_NAME=0.0.0.0 \
|
49 |
GRADIO_THEME=huggingface \
|
50 |
SYSTEM=spaces
|
51 |
|
|
|
45 |
PYTHONUNBUFFERED=1 \
|
46 |
GRADIO_ALLOW_FLAGGING=never \
|
47 |
GRADIO_NUM_PORTS=1 \
|
|
|
48 |
GRADIO_THEME=huggingface \
|
49 |
SYSTEM=spaces
|
50 |
|
main_noweb.py
CHANGED
@@ -269,9 +269,10 @@ if __name__ == "__main__":
|
|
269 |
max_size=25, # Maximum number of requests that the queue processes
|
270 |
api_open = False # When creating a Gradio demo, you may want to restrict all traffic to happen through the user interface as opposed to the programmatic API that is automatically created for your Gradio demo.
|
271 |
) # https://www.gradio.app/guides/setting-up-a-demo-for-maximum-performance
|
272 |
-
block.launch(
|
273 |
-
|
274 |
-
|
|
|
275 |
)
|
276 |
|
277 |
|
|
|
269 |
max_size=25, # Maximum number of requests that the queue processes
|
270 |
api_open = False # When creating a Gradio demo, you may want to restrict all traffic to happen through the user interface as opposed to the programmatic API that is automatically created for your Gradio demo.
|
271 |
) # https://www.gradio.app/guides/setting-up-a-demo-for-maximum-performance
|
272 |
+
block.launch(
|
273 |
+
server_name="0.0.0.0",
|
274 |
+
server_port=7860,
|
275 |
+
auth=("username", "password")
|
276 |
)
|
277 |
|
278 |
|