Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,7 +48,7 @@ def generate_images(text, num_images=6):
|
|
| 48 |
image_embeddings,
|
| 49 |
text,
|
| 50 |
image_filenames=valid_df['image'].values,
|
| 51 |
-
n=
|
| 52 |
|
| 53 |
return generated_images
|
| 54 |
|
|
@@ -57,7 +57,7 @@ def create_demo():
|
|
| 57 |
with gr.Blocks() as demo:
|
| 58 |
text_input = gr.Textbox(label="Enter text")
|
| 59 |
submit_button = gr.Button("Generate Images")
|
| 60 |
-
image_gallery = gr.Gallery(label="Generated Images")
|
| 61 |
|
| 62 |
def generate_and_update(text):
|
| 63 |
if text:
|
|
|
|
| 48 |
image_embeddings,
|
| 49 |
text,
|
| 50 |
image_filenames=valid_df['image'].values,
|
| 51 |
+
n=6)
|
| 52 |
|
| 53 |
return generated_images
|
| 54 |
|
|
|
|
| 57 |
with gr.Blocks() as demo:
|
| 58 |
text_input = gr.Textbox(label="Enter text")
|
| 59 |
submit_button = gr.Button("Generate Images")
|
| 60 |
+
image_gallery = gr.Gallery(label="Generated Images", height="auto")
|
| 61 |
|
| 62 |
def generate_and_update(text):
|
| 63 |
if text:
|