Spaces:
Runtime error
Runtime error
remove separate launch line
Browse files
app.py
CHANGED
@@ -14,10 +14,4 @@ if __name__ == "__main__":
|
|
14 |
outputs=outputs,
|
15 |
title="Text-to-Meow",
|
16 |
description="Ever thought of whether your cat understands your words? It no longer matters! Now you get to speak in their language!",
|
17 |
-
)
|
18 |
-
|
19 |
-
app.launch(
|
20 |
-
server_name="0.0.0.0",
|
21 |
-
server_port=config.port,
|
22 |
-
enable_queue=True,
|
23 |
-
)
|
|
|
14 |
outputs=outputs,
|
15 |
title="Text-to-Meow",
|
16 |
description="Ever thought of whether your cat understands your words? It no longer matters! Now you get to speak in their language!",
|
17 |
+
).launch()
|
|
|
|
|
|
|
|
|
|
|
|
config.py
CHANGED
@@ -6,7 +6,7 @@ class BaseConfig(BaseSettings):
|
|
6 |
https://pydantic-docs.helpmanual.io/usage/settings/
|
7 |
"""
|
8 |
# KNative assigns a $PORT environment variable to the container
|
9 |
-
port: int = Field(default=8080, env="PORT",description="Gradio App Server Port")
|
10 |
|
11 |
manifest_path: str = 'meows/manifest.json'
|
12 |
sample_rate: int = 16000
|
|
|
6 |
https://pydantic-docs.helpmanual.io/usage/settings/
|
7 |
"""
|
8 |
# KNative assigns a $PORT environment variable to the container
|
9 |
+
# port: int = Field(default=8080, env="PORT",description="Gradio App Server Port")
|
10 |
|
11 |
manifest_path: str = 'meows/manifest.json'
|
12 |
sample_rate: int = 16000
|