Update app.py
Browse files
app.py
CHANGED
@@ -262,8 +262,6 @@ def main():
|
|
262 |
js="""
|
263 |
function refresh() {
|
264 |
const url = new URL(window.location);
|
265 |
-
|
266 |
-
|
267 |
if (url.searchParams.get('__theme') !== 'light') {
|
268 |
url.searchParams.set('__theme', 'light');
|
269 |
window.location.href = url.href;
|
@@ -296,7 +294,6 @@ def main():
|
|
296 |
show_prompt_button.click(show_prompt_in_3d, inputs=[sample_dropdown, scene_dropdown, prompt_type_dropdown, prompt_sample_dropdown], outputs=[plot1, response])
|
297 |
start_segment_button.click(start_segmentation, inputs=[sample_dropdown, scene_dropdown, prompt_type_dropdown, prompt_sample_dropdown], outputs=[plot1, response])
|
298 |
|
299 |
-
#app.queue(status_update_rate="auto")
|
300 |
app.queue(max_size=20, api_open=False)
|
301 |
app.launch(max_threads=400)
|
302 |
|
|
|
262 |
js="""
|
263 |
function refresh() {
|
264 |
const url = new URL(window.location);
|
|
|
|
|
265 |
if (url.searchParams.get('__theme') !== 'light') {
|
266 |
url.searchParams.set('__theme', 'light');
|
267 |
window.location.href = url.href;
|
|
|
294 |
show_prompt_button.click(show_prompt_in_3d, inputs=[sample_dropdown, scene_dropdown, prompt_type_dropdown, prompt_sample_dropdown], outputs=[plot1, response])
|
295 |
start_segment_button.click(start_segmentation, inputs=[sample_dropdown, scene_dropdown, prompt_type_dropdown, prompt_sample_dropdown], outputs=[plot1, response])
|
296 |
|
|
|
297 |
app.queue(max_size=20, api_open=False)
|
298 |
app.launch(max_threads=400)
|
299 |
|