Spaces:
Build error
Build error
Paweł Klimkowski
commited on
Commit
·
8058804
1
Parent(s):
83234a7
feat: new samples
Browse files
app.py
CHANGED
@@ -17,13 +17,13 @@ with gr.Blocks() as demo:
|
|
17 |
with gr.Row():
|
18 |
with gr.Column():
|
19 |
prompt = gr.Textbox(label="prompt")
|
20 |
-
samples = gr.Slider(label="Samples",value=1, step=1, maximum=
|
21 |
run = gr.Button(value="Run")
|
22 |
with gr.Column():
|
23 |
-
gallery = gr.Gallery(show_label=
|
24 |
|
25 |
run.click(inference, inputs=[prompt,samples], outputs=gallery)
|
26 |
-
gr.Examples([["a photo of oklyt", 1,1], ["living space in european home in oklyt style, 4k",3]], [prompt,samples], gallery, inference, cache_examples=False)
|
27 |
|
28 |
|
29 |
demo.launch(debug=True)
|
|
|
17 |
with gr.Row():
|
18 |
with gr.Column():
|
19 |
prompt = gr.Textbox(label="prompt")
|
20 |
+
samples = gr.Slider(label="Samples",value=1, step=1, maximum=3)
|
21 |
run = gr.Button(value="Run")
|
22 |
with gr.Column():
|
23 |
+
gallery = gr.Gallery(show_label=True)
|
24 |
|
25 |
run.click(inference, inputs=[prompt,samples], outputs=gallery)
|
26 |
+
gr.Examples([["Cubist painting called 'oklyt sideboard in the Milan showroom' by Pablo Picasso",3],["Painting called 'sideboard with diaries at coffeehouse in Paris' by Claude Monet",3],["a photo of oklyt", 1,1], ["living space in european home in oklyt style, 4k",3]], [prompt,samples], gallery, inference, cache_examples=False)
|
27 |
|
28 |
|
29 |
demo.launch(debug=True)
|