example dir
Browse files
app.py
CHANGED
|
@@ -82,15 +82,14 @@ with gr.Blocks() as demo:
|
|
| 82 |
|
| 83 |
web_output = gr.Image()
|
| 84 |
|
|
|
|
|
|
|
|
|
|
| 85 |
gr.Examples(
|
| 86 |
-
examples=
|
| 87 |
fn=query_image,
|
| 88 |
inputs=inputs_file,
|
| 89 |
outputs=im_output,
|
| 90 |
cache_examples=False
|
| 91 |
)
|
| 92 |
-
|
| 93 |
-
submit_btn.click(fn=query_image, inputs= inputs_file, outputs = im_output)
|
| 94 |
-
submit_btn_web.click(fn=query_image, inputs= inputs_web, outputs = web_output)
|
| 95 |
-
|
| 96 |
demo.launch()
|
|
|
|
| 82 |
|
| 83 |
web_output = gr.Image()
|
| 84 |
|
| 85 |
+
|
| 86 |
+
submit_btn.click(fn=query_image, inputs= inputs_file, outputs = im_output)
|
| 87 |
+
submit_btn_web.click(fn=query_image, inputs= inputs_web, outputs = web_output)
|
| 88 |
gr.Examples(
|
| 89 |
+
examples= os.path.join("examples", "IMGP0178.jpg"),
|
| 90 |
fn=query_image,
|
| 91 |
inputs=inputs_file,
|
| 92 |
outputs=im_output,
|
| 93 |
cache_examples=False
|
| 94 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 95 |
demo.launch()
|