Sean-Case
commited on
Commit
β’
13cab70
1
Parent(s):
8ba34be
Set SDK version to 4.20.0 on huggingface. Added GRADIO_SERVER_PORT to Dockerfile
Browse files- Dockerfile +1 -0
- README.md +1 -1
- app.py +2 -3
Dockerfile
CHANGED
@@ -34,6 +34,7 @@ ENV HOME=/home/user \
|
|
34 |
GRADIO_ALLOW_FLAGGING=never \
|
35 |
GRADIO_NUM_PORTS=1 \
|
36 |
GRADIO_SERVER_NAME=0.0.0.0 \
|
|
|
37 |
GRADIO_THEME=huggingface \
|
38 |
GRADIO_ROOT_PATH=/data-text-search \
|
39 |
SYSTEM=spaces
|
|
|
34 |
GRADIO_ALLOW_FLAGGING=never \
|
35 |
GRADIO_NUM_PORTS=1 \
|
36 |
GRADIO_SERVER_NAME=0.0.0.0 \
|
37 |
+
GRADIO_SERVER_PORT=7860 \
|
38 |
GRADIO_THEME=huggingface \
|
39 |
GRADIO_ROOT_PATH=/data-text-search \
|
40 |
SYSTEM=spaces
|
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: π
|
|
4 |
colorFrom: purple
|
5 |
colorTo: green
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 4.
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
|
|
4 |
colorFrom: purple
|
5 |
colorTo: green
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 4.20.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
app.py
CHANGED
@@ -196,10 +196,9 @@ depends on factors such as the type of documents or queries. Information taken f
|
|
196 |
# Simple run for HF spaces or local on your computer
|
197 |
#block.queue().launch(debug=True)
|
198 |
|
199 |
-
# Running on
|
200 |
-
block.queue().launch(
|
201 |
|
202 |
-
#app = gr.mount_gradio_app(app, block, path="/data_text_search")
|
203 |
|
204 |
# Running on local server without https
|
205 |
#block.queue().launch(server_name="0.0.0.0", server_port=7861, ssl_verify=False)
|
|
|
196 |
# Simple run for HF spaces or local on your computer
|
197 |
#block.queue().launch(debug=True)
|
198 |
|
199 |
+
# Running on server (e.g. AWS) without specifying port
|
200 |
+
block.queue().launch() # root_path="/data-text-search" # server_name="0.0.0.0",
|
201 |
|
|
|
202 |
|
203 |
# Running on local server without https
|
204 |
#block.queue().launch(server_name="0.0.0.0", server_port=7861, ssl_verify=False)
|