raghunc0 commited on
Commit
222f6f5
1 Parent(s): da035ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,4 +1,5 @@
1
  import gradio as gr
 
2
 
3
 
4
 
@@ -28,12 +29,12 @@ with gr.Blocks() as interface:
28
  with gr.Row():
29
  outputs = gr.Gallery(
30
  label="Generated Image", show_label=True,
31
- columns=[2], rows=[1], object_fit="contain"
32
  )
33
 
34
  with gr.Row():
35
  button = gr.Button("Generate")
36
- button.click(generate_art, inputs=inputs, outputs=outputs)
37
 
38
  with gr.Row():
39
  gr.Examples(examples=get_examples(), inputs=inputs, outputs=outputs, fn=generate_art, cache_examples=True)
 
1
  import gradio as gr
2
+ from sd_utils import *
3
 
4
 
5
 
 
29
  with gr.Row():
30
  outputs = gr.Gallery(
31
  label="Generated Image", show_label=True,
32
+ columns=[1], rows=[1], object_fit="contain"
33
  )
34
 
35
  with gr.Row():
36
  button = gr.Button("Generate")
37
+ button.click(generate_with_embs_custom_loss, inputs=inputs, outputs=outputs)
38
 
39
  with gr.Row():
40
  gr.Examples(examples=get_examples(), inputs=inputs, outputs=outputs, fn=generate_art, cache_examples=True)