Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -96,6 +96,17 @@ with gr.Blocks(css=css) as demo:
|
|
96 |
max_lines = 30,
|
97 |
elem_id = "suggested-system-prompt"
|
98 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
|
100 |
submit_btn.click(
|
101 |
fn = infer,
|
|
|
96 |
max_lines = 30,
|
97 |
elem_id = "suggested-system-prompt"
|
98 |
)
|
99 |
+
with gr.Row():
|
100 |
+
gr.Examples(
|
101 |
+
examples = [
|
102 |
+
["examples/ocean_poet.jpeg"],
|
103 |
+
["examples/winter_hiking.png"]
|
104 |
+
],
|
105 |
+
fn = infer,
|
106 |
+
inputs = [image_in],
|
107 |
+
outputs = [result],
|
108 |
+
cache_examples = True
|
109 |
+
)
|
110 |
|
111 |
submit_btn.click(
|
112 |
fn = infer,
|