ffreemt commited on
Commit
4395d76
1 Parent(s): fa82d81
Files changed (2) hide show
  1. app.py +7 -1
  2. run-app.sh +1 -0
app.py CHANGED
@@ -241,10 +241,14 @@ examples_list = [
241
 
242
  logger.info("start block")
243
 
 
 
 
244
  with gr.Blocks(
245
  title=f"{Path(model_loc).name}",
246
  theme=gr.themes.Soft(text_size="sm", spacing_size="sm"),
247
  css=css,
 
248
  ) as block:
249
  # buff_var = gr.State("")
250
  with gr.Accordion("🎈 Info", open=False):
@@ -372,4 +376,6 @@ else:
372
 
373
  # default concurrency_count = 1
374
  # block.queue(concurrency_count=concurrency_count, max_size=5).launch(debug=True)
375
- block.queue(max_size=5).launch(debug=True, server_name="0.0.0.0")
 
 
 
241
 
242
  logger.info("start block")
243
 
244
+ port = 7860
245
+ if "forindo" in platform.node():
246
+ port = 7861
247
  with gr.Blocks(
248
  title=f"{Path(model_loc).name}",
249
  theme=gr.themes.Soft(text_size="sm", spacing_size="sm"),
250
  css=css,
251
+ port=port,
252
  ) as block:
253
  # buff_var = gr.State("")
254
  with gr.Accordion("🎈 Info", open=False):
 
376
 
377
  # default concurrency_count = 1
378
  # block.queue(concurrency_count=concurrency_count, max_size=5).launch(debug=True)
379
+ block.queue(max_size=5).launch(debug=True)
380
+
381
+ # block.queue(max_size=5).launch(debug=True, server_name="0.0.0.0")
run-app.sh CHANGED
@@ -1 +1,2 @@
 
1
  nodemon -w app.py -x python app.py
 
1
+ export GRADIO_SERVER_NAME=0.9.0.0
2
  nodemon -w app.py -x python app.py