akhaliq HF Staff commited on
Commit
c8a2124
Β·
verified Β·
1 Parent(s): ad908e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -24
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
- parser.add_argument(
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 on port {args.port}")
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
- try:
539
- interface.launch(
540
- share=args.share,
541
- server_port=args.port,
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__":