Spaces:
Runtime error
Runtime error
Port as a number
Browse files
app.py
CHANGED
@@ -250,7 +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 |
)
|
255 |
|
256 |
gr.Markdown(
|
@@ -273,5 +273,8 @@ with gr.Blocks() as interface:
|
|
273 |
(Peaceful:1.5) and ((calming)) ambient music with [singing:2] bowl and other instruments
|
274 |
"""
|
275 |
)
|
276 |
-
|
277 |
-
|
|
|
|
|
|
|
|
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(
|
|
|
273 |
(Peaceful:1.5) and ((calming)) ambient music with [singing:2] bowl and other instruments
|
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)
|