tokeron commited on
Commit
0ee5077
1 Parent(s): 74a82dc

no need label

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -47,7 +47,6 @@ with gr.Blocks() as demo:
47
  label="Generated images", show_label=False, elem_id="gallery",
48
  columns=[6], rows=[4], object_fit="contain", height="auto") # set rows to 24 to accommodate all images
49
  btn = gr.Button("Generate images", scale=0)
50
- text_input = gr.Interface(fn=get_prompt, inputs="text", outputs=gr.outputs.Images())
51
- # text_input = gr.Interface(fn=get_prompt, inputs="text", outputs='Gallery')
52
- btn.click(get_prompt, text_input, gallery) # pass the text input interface to btn.click()
53
  demo.launch()
 
47
  label="Generated images", show_label=False, elem_id="gallery",
48
  columns=[6], rows=[4], object_fit="contain", height="auto") # set rows to 24 to accommodate all images
49
  btn = gr.Button("Generate images", scale=0)
50
+ # text_input = gr.Interface(fn=get_prompt, inputs="text", outputs="text")
51
+ btn.click(get_prompt, "text", gallery) # pass the text input interface to btn.click()
 
52
  demo.launch()