HaoZhang534 commited on
Commit
a184f90
1 Parent(s): 932474b
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -280,9 +280,6 @@ if __name__ == "__main__":
280
  tokenizer, model, image_processor, context_len = load_pretrained_model(args.model_path, args.model_base, model_name, args.load_8bit, args.load_4bit)
281
  our_chatbot = None
282
  # import pdb;pdb.set_trace()
283
- try:
284
- demo.launch(server_name=args.server_name, server_port=int(args.port),share=True)
285
- except Exception as e:
286
- args.port=int(args.port)+1
287
- print(f"Port {args.port} is occupied, try port {args.port}")
288
- demo.launch(server_name=args.server_name, server_port=int(args.port),share=True)
 
280
  tokenizer, model, image_processor, context_len = load_pretrained_model(args.model_path, args.model_base, model_name, args.load_8bit, args.load_4bit)
281
  our_chatbot = None
282
  # import pdb;pdb.set_trace()
283
+ # try:
284
+ demo.launch()
285
+