tyfsadik commited on
Commit
61d8dce
Β·
verified Β·
1 Parent(s): 05f6775

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -22
app.py CHANGED
@@ -1458,29 +1458,12 @@ class HumanizerApp:
1458
  # Launch
1459
  # ─────────────────────────────────────────────
1460
  def main():
1461
- """Main entry point."""
1462
- logger.info("πŸš€ Starting Advanced AI Text Humanizer...")
1463
 
1464
  app = HumanizerApp()
1465
  interface = app.build_interface()
 
1466
 
1467
- username = os.environ.get("GRADIO_USERNAME")
1468
- password = os.environ.get("GRADIO_PASSWORD")
1469
-
1470
- if username and password:
1471
- interface.queue(default_concurrency_limit=2).launch(
1472
- server_name="0.0.0.0",
1473
- server_port=int(os.environ.get("PORT", 7860)),
1474
- share=False,
1475
- show_error=True,
1476
- max_threads=10,
1477
- auth=(username, password),
1478
- )
1479
- else:
1480
- interface.queue(default_concurrency_limit=2).launch(
1481
- server_name="0.0.0.0",
1482
- server_port=int(os.environ.get("PORT", 7860)),
1483
- share=False,
1484
- show_error=True,
1485
- max_threads=10,
1486
- )
 
1458
  # Launch
1459
  # ─────────────────────────────────────────────
1460
  def main():
1461
+ logger.info("Starting DeepHumanizer...")
 
1462
 
1463
  app = HumanizerApp()
1464
  interface = app.build_interface()
1465
+ interface.queue(default_concurrency_limit=2).launch()
1466
 
1467
+
1468
+ if __name__ == "__main__":
1469
+ main()