Spaces:
Runtime error
Runtime error
Commit ·
0c9bc10
1
Parent(s): cbab966
updated app.py
Browse files
app.py
CHANGED
|
@@ -56,8 +56,8 @@ url_input = gr.Textbox(label="Paste an image URL")
|
|
| 56 |
output_file = gr.File(label="Output PNG File")
|
| 57 |
|
| 58 |
# Example images
|
| 59 |
-
chameleon = load_img("butterfly.
|
| 60 |
-
url_example = "https://
|
| 61 |
|
| 62 |
tab1 = gr.Interface(fn, inputs=image_upload, outputs=slider1, examples=[chameleon], api_name="image")
|
| 63 |
tab2 = gr.Interface(fn, inputs=url_input, outputs=slider2, examples=[url_example], api_name="text")
|
|
|
|
| 56 |
output_file = gr.File(label="Output PNG File")
|
| 57 |
|
| 58 |
# Example images
|
| 59 |
+
chameleon = load_img("butterfly.jpeg", output_type="pil")
|
| 60 |
+
url_example = "https://i.ibb.co/67B6Knk9/students-1807505-1280.jpg"
|
| 61 |
|
| 62 |
tab1 = gr.Interface(fn, inputs=image_upload, outputs=slider1, examples=[chameleon], api_name="image")
|
| 63 |
tab2 = gr.Interface(fn, inputs=url_input, outputs=slider2, examples=[url_example], api_name="text")
|