example dir
Browse files
app.py
CHANGED
@@ -70,7 +70,6 @@ with gr.Blocks() as demo:
|
|
70 |
|
71 |
im_output = gr.Image()
|
72 |
|
73 |
-
|
74 |
with gr.Tab("Capture image with webcam"):
|
75 |
with gr.Row():
|
76 |
with gr.Column():
|
@@ -79,14 +78,13 @@ with gr.Blocks() as demo:
|
|
79 |
|
80 |
web_output = gr.Image()
|
81 |
|
82 |
-
|
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 |
|
88 |
-
gr.Examples([os.path.join(os.path.dirname(__file__), "assets/IMGP0178.jpg"), os.path.join(os.path.dirname(__file__), "assets/coffee.jpg")],
|
89 |
-
|
90 |
-
)
|
91 |
|
92 |
demo.launch()
|
|
|
70 |
|
71 |
im_output = gr.Image()
|
72 |
|
|
|
73 |
with gr.Tab("Capture image with webcam"):
|
74 |
with gr.Row():
|
75 |
with gr.Column():
|
|
|
78 |
|
79 |
web_output = gr.Image()
|
80 |
|
|
|
81 |
submit_btn.click(fn=query_image, inputs= inputs_file, outputs = im_output)
|
82 |
submit_btn_web.click(fn=query_image, inputs= inputs_web, outputs = web_output)
|
83 |
|
84 |
gr.Markdown("## Image Examples")
|
85 |
|
86 |
+
# gr.Examples([os.path.join(os.path.dirname(__file__), "assets/IMGP0178.jpg"), os.path.join(os.path.dirname(__file__), "assets/coffee.jpg")],
|
87 |
+
# inputs_file, im_output,query_image
|
88 |
+
# )
|
89 |
|
90 |
demo.launch()
|