example dir
Browse files
app.py
CHANGED
@@ -65,7 +65,7 @@ with gr.Blocks() as demo:
|
|
65 |
with gr.Tab("Upload image"):
|
66 |
with gr.Row():
|
67 |
with gr.Column():
|
68 |
-
inputs_file=[gr.Image(source="
|
69 |
submit_btn = gr.Button("Submit")
|
70 |
|
71 |
im_output = gr.Image()
|
@@ -84,7 +84,7 @@ with gr.Blocks() as demo:
|
|
84 |
submit_btn_web.click(fn=query_image, inputs= inputs_web, outputs = web_output)
|
85 |
|
86 |
gr.Examples(
|
87 |
-
examples= os.path.join("examples", "IMGP0178.jpg"),
|
88 |
fn=query_image,
|
89 |
inputs=inputs_file,
|
90 |
outputs=im_output,
|
|
|
65 |
with gr.Tab("Upload image"):
|
66 |
with gr.Row():
|
67 |
with gr.Column():
|
68 |
+
inputs_file=[gr.Image(source="upload"), gr.Textbox(), gr.Slider(0, 1, value=0.1)]
|
69 |
submit_btn = gr.Button("Submit")
|
70 |
|
71 |
im_output = gr.Image()
|
|
|
84 |
submit_btn_web.click(fn=query_image, inputs= inputs_web, outputs = web_output)
|
85 |
|
86 |
gr.Examples(
|
87 |
+
examples= [os.path.join("examples", "IMGP0178.jpg")],
|
88 |
fn=query_image,
|
89 |
inputs=inputs_file,
|
90 |
outputs=im_output,
|