lev1 commited on
Commit
2751474
1 Parent(s): 5fa964f
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -85,8 +85,10 @@ with gr.Blocks(css='style.css') as demo:
85
  """)
86
 
87
 
88
- demo.queue(max_size=20)
89
- demo.launch(debug=True)
90
- # _, _, link = demo.queue(api_open=False).launch(
91
- # file_directories=['temporal'], share=args.public_access or on_huggingspace)
92
- # print(link)
 
 
 
85
  """)
86
 
87
 
88
+ if on_huggingspace:
89
+ demo.queue(max_size=20)
90
+ demo.launch(debug=True)
91
+ else:
92
+ _, _, link = demo.queue(api_open=False).launch(
93
+ file_directories=['temporal'], share=args.public_access or on_huggingspace)
94
+ print(link)