hansyan commited on
Commit
c8fa5b1
β€’
1 Parent(s): 77b7e99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -15
app.py CHANGED
@@ -171,18 +171,5 @@ with gr.Blocks(title="TripoSR", css=css) as interface:
171
 
172
 
173
  if __name__ == '__main__':
174
- parser = argparse.ArgumentParser()
175
- parser.add_argument('--username', type=str, default=None, help='Username for authentication')
176
- parser.add_argument('--password', type=str, default=None, help='Password for authentication')
177
- parser.add_argument('--port', type=int, default=7860, help='Port to run the server listener on')
178
- parser.add_argument("--listen", action='store_true', help="launch gradio with 0.0.0.0 as server name, allowing to respond to network requests")
179
- parser.add_argument("--share", action='store_true', help="use share=True for gradio and make the UI accessible through their site")
180
- parser.add_argument("--queuesize", type=int, default=1, help="launch gradio queue max_size")
181
- args = parser.parse_args()
182
- interface.queue(max_size=args.queuesize)
183
- interface.launch(
184
- auth=(args.username, args.password) if (args.username and args.password) else None,
185
- share=args.share,
186
- server_name="0.0.0.0" if args.listen else None,
187
- server_port=args.port
188
- )
 
171
 
172
 
173
  if __name__ == '__main__':
174
+ interface.queue(max_size=10)
175
+ interface.launch()