Spaces:
Running
on
L4
Running
on
L4
Update app.py
Browse files
app.py
CHANGED
@@ -471,6 +471,9 @@ def create_chat_interface(chat_instance: VibeVoiceChat):
|
|
471 |
font-size: 1.1em;
|
472 |
}
|
473 |
""",
|
|
|
|
|
|
|
474 |
)
|
475 |
|
476 |
return interface
|
@@ -496,17 +499,7 @@ def parse_args():
|
|
496 |
default=10,
|
497 |
help="Number of DDPM inference steps",
|
498 |
)
|
499 |
-
|
500 |
-
"--share",
|
501 |
-
action="store_true",
|
502 |
-
help="Share the demo publicly",
|
503 |
-
)
|
504 |
-
parser.add_argument(
|
505 |
-
"--port",
|
506 |
-
type=int,
|
507 |
-
default=7860,
|
508 |
-
help="Port to run the demo on",
|
509 |
-
)
|
510 |
|
511 |
return parser.parse_args()
|
512 |
|
@@ -529,24 +522,16 @@ def main():
|
|
529 |
# Create interface
|
530 |
interface = create_chat_interface(chat_instance)
|
531 |
|
532 |
-
print(f"π Launching chat interface
|
533 |
print(f"π Model: {args.model_path}")
|
534 |
print(f"π» Device: {chat_instance.device}")
|
535 |
print(f"π Available voices: {len(chat_instance.available_voices)}")
|
536 |
|
537 |
# Launch the interface
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
server_name="0.0.0.0" if args.share else "127.0.0.1",
|
543 |
-
show_error=True,
|
544 |
-
)
|
545 |
-
except KeyboardInterrupt:
|
546 |
-
print("\nπ Shutting down...")
|
547 |
-
except Exception as e:
|
548 |
-
print(f"β Error: {e}")
|
549 |
-
raise
|
550 |
|
551 |
|
552 |
if __name__ == "__main__":
|
|
|
471 |
font-size: 1.1em;
|
472 |
}
|
473 |
""",
|
474 |
+
analytics_enabled=True,
|
475 |
+
fill_height=True,
|
476 |
+
fill_width=False,
|
477 |
)
|
478 |
|
479 |
return interface
|
|
|
499 |
default=10,
|
500 |
help="Number of DDPM inference steps",
|
501 |
)
|
502 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
503 |
|
504 |
return parser.parse_args()
|
505 |
|
|
|
522 |
# Create interface
|
523 |
interface = create_chat_interface(chat_instance)
|
524 |
|
525 |
+
print(f"π Launching chat interface")
|
526 |
print(f"π Model: {args.model_path}")
|
527 |
print(f"π» Device: {chat_instance.device}")
|
528 |
print(f"π Available voices: {len(chat_instance.available_voices)}")
|
529 |
|
530 |
# Launch the interface
|
531 |
+
interface.launch(
|
532 |
+
show_error=True,
|
533 |
+
quiet=False,
|
534 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
535 |
|
536 |
|
537 |
if __name__ == "__main__":
|