Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -77,8 +77,12 @@ with gr.Blocks(
|
|
77 |
)
|
78 |
btn = gr.Button("Generate", variant="primary")
|
79 |
|
80 |
-
with gr.Accordion("Examples", open=False):
|
81 |
-
examples = gr.Examples(
|
|
|
|
|
|
|
|
|
82 |
|
83 |
with gr.Tab("⚙️ Settings"):
|
84 |
with gr.Row():
|
@@ -134,6 +138,7 @@ with gr.Blocks(
|
|
134 |
|
135 |
app.load(
|
136 |
update_examples,
|
|
|
137 |
outputs=[examples.dataset],
|
138 |
queue=False,
|
139 |
show_api=False
|
|
|
77 |
)
|
78 |
btn = gr.Button("Generate", variant="primary")
|
79 |
|
80 |
+
with gr.Accordion("💡 Examples", open=False):
|
81 |
+
examples = gr.Examples(
|
82 |
+
load_examples(),
|
83 |
+
inputs=[prompt],
|
84 |
+
examples_per_page=5
|
85 |
+
)
|
86 |
|
87 |
with gr.Tab("⚙️ Settings"):
|
88 |
with gr.Row():
|
|
|
138 |
|
139 |
app.load(
|
140 |
update_examples,
|
141 |
+
inputs=None,
|
142 |
outputs=[examples.dataset],
|
143 |
queue=False,
|
144 |
show_api=False
|