liuyizhang commited on
Commit
9463411
1 Parent(s): 2262ea9

update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -864,7 +864,10 @@ def get_model_device(module):
864
  return 'Error'
865
 
866
  def main_gradio(args):
867
- block = gr.Blocks().queue()
 
 
 
868
  with block:
869
  with gr.Row():
870
  with gr.Column():
@@ -972,6 +975,7 @@ def main_gradio(args):
972
  print(f'device = {device}')
973
  print(f'torch.cuda.is_available = {torch.cuda.is_available()}')
974
  computer_info()
 
975
  block.launch(server_name='0.0.0.0', server_port=args.port, debug=args.debug, share=args.share)
976
 
977
  if __name__ == "__main__":
 
864
  return 'Error'
865
 
866
  def main_gradio(args):
867
+ block = gr.Blocks(
868
+ title="SAM and others",
869
+ theme="shivi/calm_seafoam@>=0.0.1,<1.0.0",
870
+ )
871
  with block:
872
  with gr.Row():
873
  with gr.Column():
 
975
  print(f'device = {device}')
976
  print(f'torch.cuda.is_available = {torch.cuda.is_available()}')
977
  computer_info()
978
+ block.queue(max_size=10)
979
  block.launch(server_name='0.0.0.0', server_port=args.port, debug=args.debug, share=args.share)
980
 
981
  if __name__ == "__main__":