Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,10 +62,10 @@ chameleon = load_img("giraffe.jpg", output_type="pil")
|
|
| 62 |
url = "http://farm9.staticflickr.com/8488/8228323072_76eeddfea3_z.jpg"
|
| 63 |
|
| 64 |
tab1 = gr.Interface(
|
| 65 |
-
fn, inputs=image, outputs=[slider1,
|
| 66 |
)
|
| 67 |
|
| 68 |
-
tab2 = gr.Interface(fn, inputs=text, outputs=[slider2,
|
| 69 |
tab3 = gr.Interface(process_file, inputs=image2, outputs=png_file, examples=["giraffe.jpg"], api_name="png")
|
| 70 |
|
| 71 |
|
|
|
|
| 62 |
url = "http://farm9.staticflickr.com/8488/8228323072_76eeddfea3_z.jpg"
|
| 63 |
|
| 64 |
tab1 = gr.Interface(
|
| 65 |
+
fn, inputs=image, outputs=[slider1, gr.File(label="output png file")], examples=[chameleon], api_name="image"
|
| 66 |
)
|
| 67 |
|
| 68 |
+
tab2 = gr.Interface(fn, inputs=text, outputs=[slider2, gr.File(label="output png file")], examples=[url], api_name="text")
|
| 69 |
tab3 = gr.Interface(process_file, inputs=image2, outputs=png_file, examples=["giraffe.jpg"], api_name="png")
|
| 70 |
|
| 71 |
|