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
Files changed (3) hide show
  1. Dockerfile +1 -0
  2. README.md +1 -1
  3. 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.16.0
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 local server without specifying port
200
- block.queue().launch(server_name="0.0.0.0", root_path="/data-text-search") #
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)