ffreemt commited on
Commit
50f8511
1 Parent(s): e099b73

Update server_port

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. app.py +4 -1
  3. run-app.sh +1 -1
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 🚀
4
  colorFrom: green
5
  colorTo: green
6
  sdk: gradio
7
- sdk_version: 3.37.0
8
  app_file: app.py
9
  pinned: true
10
  duplicated_from: mikeee/llama2-7b-chat-ggml
 
4
  colorFrom: green
5
  colorTo: green
6
  sdk: gradio
7
+ sdk_version: 3.39.0
8
  app_file: app.py
9
  pinned: true
10
  duplicated_from: mikeee/llama2-7b-chat-ggml
app.py CHANGED
@@ -377,6 +377,9 @@ else:
377
  # default concurrency_count = 1
378
  # block.queue(concurrency_count=concurrency_count, max_size=5).launch(debug=True)
379
 
380
- block.queue(max_size=5).launch(debug=True, server_name="0.0.0.0")
 
 
 
381
 
382
  # block.queue(max_size=5).launch(debug=True, server_name="0.0.0.0")
 
377
  # default concurrency_count = 1
378
  # block.queue(concurrency_count=concurrency_count, max_size=5).launch(debug=True)
379
 
380
+ server_port = 7860
381
+ if "forindo" in platform.node():
382
+ server_port = 7861
383
+ block.queue(max_size=5).launch(debug=True, server_name="0.0.0.0", server_port=server_port)
384
 
385
  # block.queue(max_size=5).launch(debug=True, server_name="0.0.0.0")
run-app.sh CHANGED
@@ -1,2 +1,2 @@
1
- export GRADIO_SERVER_NAME=0.9.0.0
2
  nodemon -w app.py -x python app.py
 
1
+ export GRADIO_SERVER_NAME=0.0.0.0
2
  nodemon -w app.py -x python app.py