pcuenq HF staff commited on
Commit
c038666
1 Parent(s): 4a70fa9

Remove port args

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -301,7 +301,7 @@ def generate(
301
  )
302
 
303
 
304
- def main(args):
305
  download_all_models()
306
 
307
  # get the language model outputs
@@ -543,12 +543,9 @@ def main(args):
543
  inputs=[prompt_input],
544
  )
545
 
546
- launch_args = {"server_port": int(args.port), "server_name": "0.0.0.0"}
547
  demo.queue(default_concurrency_limit=1).launch(**launch_args)
548
 
549
 
550
  if __name__ == "__main__":
551
- parser = simple_parsing.ArgumentParser(description="pre-loading demo")
552
- parser.add_argument("--port", type=int, default=7860)
553
- args = parser.parse_known_args()[0]
554
- main(args)
 
301
  )
302
 
303
 
304
+ def main():
305
  download_all_models()
306
 
307
  # get the language model outputs
 
543
  inputs=[prompt_input],
544
  )
545
 
546
+ launch_args = {}
547
  demo.queue(default_concurrency_limit=1).launch(**launch_args)
548
 
549
 
550
  if __name__ == "__main__":
551
+ main()