example dir
Browse files
app.py
CHANGED
@@ -84,10 +84,11 @@ with gr.Blocks() as demo:
|
|
84 |
submit_btn_web.click(fn=query_image, inputs= inputs_web, outputs = web_output)
|
85 |
|
86 |
gr.Markdown("## Image Examples")
|
|
|
87 |
gr.Examples(
|
88 |
examples=os.path.join(os.path.dirname(__file__), "examples", "IMGP0178.jpg"),
|
89 |
-
inputs=
|
90 |
-
outputs=
|
91 |
fn=query_image,
|
92 |
cache_examples=True,
|
93 |
)
|
|
|
84 |
submit_btn_web.click(fn=query_image, inputs= inputs_web, outputs = web_output)
|
85 |
|
86 |
gr.Markdown("## Image Examples")
|
87 |
+
|
88 |
gr.Examples(
|
89 |
examples=os.path.join(os.path.dirname(__file__), "examples", "IMGP0178.jpg"),
|
90 |
+
inputs=[gr.Image(source="upload"), gr.Textbox(), gr.Slider(0, 1, value=0.1)],
|
91 |
+
outputs=gr.Image(),
|
92 |
fn=query_image,
|
93 |
cache_examples=True,
|
94 |
)
|