Fabrice-TIERCELIN commited on
Commit
fdeb1ee
·
verified ·
1 Parent(s): 40217ad

Local server on Pinokio

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -250,8 +250,7 @@ with gr.Blocks() as interface:
250
  ["A female is speaking followed by footstep sound", 1, 100, 3, False, 123],
251
  ["Wooden table tapping sound followed by water pouring sound.", 3, 200, 3, False, 123],
252
  ],
253
- #cache_examples = "lazy",
254
- cache_examples = False,
255
  )
256
 
257
  gr.Markdown(
@@ -275,4 +274,7 @@ with gr.Blocks() as interface:
275
  """
276
  )
277
 
278
- interface.queue(10).launch()
 
 
 
 
250
  ["A female is speaking followed by footstep sound", 1, 100, 3, False, 123],
251
  ["Wooden table tapping sound followed by water pouring sound.", 3, 200, 3, False, 123],
252
  ],
253
+ cache_examples = "lazy" if is_space_imported else False,
 
254
  )
255
 
256
  gr.Markdown(
 
274
  """
275
  )
276
 
277
+ if is_space_imported:
278
+ interface.queue(10).launch()
279
+ else:
280
+ interface.queue(10).launch(server_name = '127.0.0.1', server_port = '6688')