Paweł Klimkowski commited on
Commit
9b1f760
·
1 Parent(s): fcd5f7c

feat: example

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -13,7 +13,7 @@ def inference(prompt, num_samples):
13
  return all_images
14
 
15
  with gr.Blocks() as demo:
16
- gr.HTML("<h2 style=\"font-size: 2em; font-weight: bold\" align=\"center\"> Tylko Concept model</h2><p style=\"font-size: 1em; font-weight: bold\" align=\"center\">Generate your own Tylko as you would see the world though Tylko's lenses</p>")
17
  with gr.Row():
18
  with gr.Column():
19
  prompt = gr.Textbox(label="prompt")
@@ -23,7 +23,7 @@ with gr.Blocks() as demo:
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)
 
13
  return all_images
14
 
15
  with gr.Blocks() as demo:
16
+ gr.HTML("<h2 style=\"font-size: 2em; font-weight: bold\" align=\"center\"> Tylko Concept model</h2><p style=\"font-size: 1em; padding-top: 1em;\" align=\"center\">Generate your own Tylko as you would see the world though Tylko's lenses</p>")
17
  with gr.Row():
18
  with gr.Column():
19
  prompt = gr.Textbox(label="prompt")
 
23
  gallery = gr.Gallery(show_label=True)
24
 
25
  run.click(inference, inputs=[prompt,samples], outputs=gallery)
26
+ gr.Examples([["Bauhaus illustration called 'oklyt classroom ' by Wassily Kandinsky",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)