example dir
Browse files
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 🔥
|
|
4 |
colorFrom: yellow
|
5 |
colorTo: yellow
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 3.
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
|
|
4 |
colorFrom: yellow
|
5 |
colorTo: yellow
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 3.37.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
app.py
CHANGED
@@ -83,12 +83,13 @@ with gr.Blocks() as demo:
|
|
83 |
submit_btn.click(fn=query_image, inputs= inputs_file, outputs = im_output)
|
84 |
submit_btn_web.click(fn=query_image, inputs= inputs_web, outputs = web_output)
|
85 |
|
|
|
86 |
gr.Examples(
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
|
94 |
demo.launch()
|
|
|
83 |
submit_btn.click(fn=query_image, inputs= inputs_file, outputs = im_output)
|
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=inputs_file,
|
90 |
+
outputs=im_output,
|
91 |
+
fn=query_image,
|
92 |
+
cache_examples=True,
|
93 |
+
)
|
94 |
|
95 |
demo.launch()
|