Update app.py
Browse files
app.py
CHANGED
@@ -51,16 +51,16 @@ text = gr.Textbox(label="Paste an image URL")
|
|
51 |
chameleon = load_img("chameleon.jpg", output_type="pil")
|
52 |
|
53 |
url = "https://hips.hearstapps.com/hmg-prod/images/gettyimages-1229892983-square.jpg"
|
54 |
-
|
55 |
fn, inputs=image, outputs=img1, examples=[chameleon], api_name="image"
|
56 |
)
|
57 |
|
58 |
-
tab2 = gr.Interface(fn, inputs=text, outputs=slider2, examples=[url], api_name="text")
|
59 |
|
60 |
|
61 |
-
demo = gr.TabbedInterface(
|
62 |
-
|
63 |
-
)
|
64 |
|
65 |
if __name__ == "__main__":
|
66 |
demo.launch()
|
|
|
51 |
chameleon = load_img("chameleon.jpg", output_type="pil")
|
52 |
|
53 |
url = "https://hips.hearstapps.com/hmg-prod/images/gettyimages-1229892983-square.jpg"
|
54 |
+
demo = gr.Interface(
|
55 |
fn, inputs=image, outputs=img1, examples=[chameleon], api_name="image"
|
56 |
)
|
57 |
|
58 |
+
# tab2 = gr.Interface(fn, inputs=text, outputs=slider2, examples=[url], api_name="text")
|
59 |
|
60 |
|
61 |
+
# demo = gr.TabbedInterface(
|
62 |
+
# [tab1, tab2], ["image", "text"], title="birefnet for background removal (WIP 🛠️, works for linux)"
|
63 |
+
# )
|
64 |
|
65 |
if __name__ == "__main__":
|
66 |
demo.launch()
|