justin-zk commited on
Commit
1f88289
1 Parent(s): b811177

update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -7
app.py CHANGED
@@ -543,10 +543,13 @@ main_finetune = gr.Interface(
543
  ["./examples/duck_toy_00.jpg", "./examples/duck_toy_00.png", "./examples/duck_toy_01.jpg", "./examples/duck_toy_02.jpg"],
544
  ]
545
  )
546
-
547
- gr.TabbedInterface(
548
- # [main, main_scribble, main_finetune],
549
- [main, main_finetune],
550
- ["Personalize-SAM", "Personalize-SAM-F"],
551
- # ["Personalize-SAM", "Personalize-SAM-Scribble", "Personalize-SAM-F"],
552
- ).launch()
 
 
 
 
543
  ["./examples/duck_toy_00.jpg", "./examples/duck_toy_00.png", "./examples/duck_toy_01.jpg", "./examples/duck_toy_02.jpg"],
544
  ]
545
  )
546
+ demo = gr.Blocks()
547
+ with demo:
548
+ gr.TabbedInterface(
549
+ # [main, main_scribble, main_finetune],
550
+ [main, main_finetune],
551
+ ["Personalize-SAM", "Personalize-SAM-F"],
552
+ # ["Personalize-SAM", "Personalize-SAM-Scribble", "Personalize-SAM-F"],
553
+ )
554
+
555
+ demo.launch()