Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -151,12 +151,12 @@ def combined_function(user_prompt, seed_words_input):
|
|
151 |
if __name__ == '__main__':
|
152 |
def generate_and_display(user_prompt, seed_words_input):
|
153 |
parsed_descriptions, images = combined_function(user_prompt, seed_words_input)
|
154 |
-
return
|
155 |
|
156 |
interface = gr.Interface(
|
157 |
fn=generate_and_display,
|
158 |
inputs=[gr.Textbox(lines=2, placeholder="Enter a prompt for descriptions..."), gr.Textbox(lines=2, placeholder='Enter seed words in quotes, e.g., "cat", "dog", "sunset"...')],
|
159 |
-
outputs=[gr.
|
160 |
live=True
|
161 |
)
|
162 |
|
|
|
151 |
if __name__ == '__main__':
|
152 |
def generate_and_display(user_prompt, seed_words_input):
|
153 |
parsed_descriptions, images = combined_function(user_prompt, seed_words_input)
|
154 |
+
return parsed_descriptions, images
|
155 |
|
156 |
interface = gr.Interface(
|
157 |
fn=generate_and_display,
|
158 |
inputs=[gr.Textbox(lines=2, placeholder="Enter a prompt for descriptions..."), gr.Textbox(lines=2, placeholder='Enter seed words in quotes, e.g., "cat", "dog", "sunset"...')],
|
159 |
+
outputs=[gr.Textbox(label="Generated Descriptions"), gr.Gallery(label="Generated Images")],
|
160 |
live=True
|
161 |
)
|
162 |
|