Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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="
|
54 |
-
|
55 |
-
|
|
|
|
|
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:
|