ffreemt
commited on
Commit
·
904b97d
1
Parent(s):
993f74d
Update
Browse files
app.py
CHANGED
|
@@ -393,16 +393,10 @@ examples_list = [
|
|
| 393 |
|
| 394 |
logger.info("start block")
|
| 395 |
|
| 396 |
-
|
| 397 |
-
port = 7860
|
| 398 |
-
if "forindo" in platform.node():
|
| 399 |
-
port = 7861
|
| 400 |
-
|
| 401 |
with gr.Blocks(
|
| 402 |
title=f"{Path(model_loc).name}",
|
| 403 |
theme=gr.themes.Soft(text_size="sm", spacing_size="sm"),
|
| 404 |
css=css,
|
| 405 |
-
port=port,
|
| 406 |
) as block:
|
| 407 |
# buff_var = gr.State("")
|
| 408 |
with gr.Accordion("🎈 Info", open=False):
|
|
@@ -535,4 +529,8 @@ concurrency_count = 1
|
|
| 535 |
logger.info(f"{concurrency_count=}")
|
| 536 |
|
| 537 |
# export GRADIO_SERVER_NAME=0.0.0.0
|
| 538 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 393 |
|
| 394 |
logger.info("start block")
|
| 395 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 396 |
with gr.Blocks(
|
| 397 |
title=f"{Path(model_loc).name}",
|
| 398 |
theme=gr.themes.Soft(text_size="sm", spacing_size="sm"),
|
| 399 |
css=css,
|
|
|
|
| 400 |
) as block:
|
| 401 |
# buff_var = gr.State("")
|
| 402 |
with gr.Accordion("🎈 Info", open=False):
|
|
|
|
| 529 |
logger.info(f"{concurrency_count=}")
|
| 530 |
|
| 531 |
# export GRADIO_SERVER_NAME=0.0.0.0
|
| 532 |
+
port = 7860
|
| 533 |
+
if "forindo" in platform.node():
|
| 534 |
+
port = 7861
|
| 535 |
+
|
| 536 |
+
block.queue(concurrency_count=concurrency_count, max_size=5).launch(debug=True, server_name="0.0.0.0", server_port=port)
|