TDN-M commited on
Commit
2b2daba
·
verified ·
1 Parent(s): c211f23

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +6 -2
main.py CHANGED
@@ -395,5 +395,9 @@ demo.launch(
395
  )
396
 
397
  # Định nghĩa API endpoints
398
- demo.named_endpoints["/api/text2img"] = api_text2img
399
- demo.named_endpoints["/api/img2img"] = api_img2img
 
 
 
 
 
395
  )
396
 
397
  # Định nghĩa API endpoints
398
+ demo.launch(
399
+ server_name="0.0.0.0",
400
+ server_port=7860,
401
+ queue=True, # Updated parameter
402
+ api_open=True
403
+ )