Spaces:
Sleeping
Sleeping
Joe Ho
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ text = gr.Textbox(label="Paste an image URL")
|
|
64 |
png_file = gr.File(label="output png file")
|
65 |
|
66 |
|
67 |
-
chameleon = load_img("sea_fortune.
|
68 |
|
69 |
url = "http://farm9.staticflickr.com/8488/8228323072_76eeddfea3_z.jpg"
|
70 |
|
@@ -73,7 +73,7 @@ tab1 = gr.Interface(
|
|
73 |
)
|
74 |
|
75 |
tab2 = gr.Interface(fn, inputs=text, outputs=[slider2, gr.File(label="output png file")], examples=[url], api_name="text")
|
76 |
-
tab3 = gr.Interface(process_file, inputs=image2, outputs=png_file, examples=["sea_fortune.
|
77 |
|
78 |
|
79 |
demo = gr.TabbedInterface(
|
|
|
64 |
png_file = gr.File(label="output png file")
|
65 |
|
66 |
|
67 |
+
chameleon = load_img("sea_fortune.jpeg", output_type="pil")
|
68 |
|
69 |
url = "http://farm9.staticflickr.com/8488/8228323072_76eeddfea3_z.jpg"
|
70 |
|
|
|
73 |
)
|
74 |
|
75 |
tab2 = gr.Interface(fn, inputs=text, outputs=[slider2, gr.File(label="output png file")], examples=[url], api_name="text")
|
76 |
+
tab3 = gr.Interface(process_file, inputs=image2, outputs=png_file, examples=["sea_fortune.jpeg"], api_name="png")
|
77 |
|
78 |
|
79 |
demo = gr.TabbedInterface(
|