SeemG commited on
Commit
ddedf1b
·
verified ·
1 Parent(s): 51629b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -50,9 +50,11 @@ def generate_images(text, num_images=6):
50
  # Gradio interface
51
  def create_demo():
52
  with gr.Blocks() as demo:
53
- text_input = gr.Textbox(label="Enter text")
54
- submit_button = gr.Button("Search Images")
55
- image_gallery = gr.Gallery(label="Images matching text search", height="auto")
 
 
56
 
57
  def generate_and_update(text):
58
  if text:
 
50
  # Gradio interface
51
  def create_demo():
52
  with gr.Blocks() as demo:
53
+ text_input = gr.Textbox(label="Prompt")
54
+ radio_group = gr.Radio(choices=["Carnival", "Mysterious Forest", "Kids playing"], label="Predefined Prompts")
55
+ submit_button = gr.Button("Get Images")
56
+ image_gallery = gr.Gallery(label="Images Matching Prompt", show_label=True, elem_id="gallery",
57
+ columns=[4], rows=[4], object_fit="small", height="auto"")
58
 
59
  def generate_and_update(text):
60
  if text: