Spaces:
Running
on
Zero
Running
on
Zero
Commit
Β·
d3ce606
1
Parent(s):
f1f1b4c
optimize for hf space
Browse files
README.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# MOSS-Speech: Towards True Speech-to-Speech Models Without Text Guidance
|
| 2 |
|
| 3 |
<div align="center" style="line-height: 1;">
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: MOSS-Speech Demo
|
| 3 |
+
sdk: gradio
|
| 4 |
+
sdk_version: 5.47.2
|
| 5 |
+
app_file: app.py
|
| 6 |
+
python_version: "3.12"
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
# MOSS-Speech: Towards True Speech-to-Speech Models Without Text Guidance
|
| 10 |
|
| 11 |
<div align="center" style="line-height: 1;">
|
app.py
CHANGED
|
@@ -27,9 +27,6 @@ def parse_args():
|
|
| 27 |
default='fnlp/MOSS-Speech-Codec',
|
| 28 |
help="the path of codec",
|
| 29 |
)
|
| 30 |
-
parser.add_argument("--host", type=str, default="0.0.0.0", help="server address")
|
| 31 |
-
parser.add_argument("--port", type=int, default=7860, help="server port")
|
| 32 |
-
parser.add_argument("--share", action="store_true", help="cweather reate a public link")
|
| 33 |
return parser.parse_args()
|
| 34 |
|
| 35 |
|
|
@@ -39,16 +36,8 @@ def main():
|
|
| 39 |
# create demo
|
| 40 |
interface = MIMOInterface(args.model_path)
|
| 41 |
demo = interface.create_interface()
|
| 42 |
-
|
| 43 |
-
print(f"π running Moss Speech Demo...")
|
| 44 |
-
print(f"π± model path: {args.model_path}")
|
| 45 |
-
print(f"π server link: http://{args.host}:{args.port}")
|
| 46 |
|
| 47 |
-
demo.launch(
|
| 48 |
-
server_name=args.host,
|
| 49 |
-
server_port=args.port,
|
| 50 |
-
share=args.share
|
| 51 |
-
)
|
| 52 |
|
| 53 |
|
| 54 |
if __name__ == "__main__":
|
|
|
|
| 27 |
default='fnlp/MOSS-Speech-Codec',
|
| 28 |
help="the path of codec",
|
| 29 |
)
|
|
|
|
|
|
|
|
|
|
| 30 |
return parser.parse_args()
|
| 31 |
|
| 32 |
|
|
|
|
| 36 |
# create demo
|
| 37 |
interface = MIMOInterface(args.model_path)
|
| 38 |
demo = interface.create_interface()
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
+
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
|
| 43 |
if __name__ == "__main__":
|