Spaces:
Runtime error
Runtime error
Kvikontent
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -57,13 +57,11 @@ description = "This app uses Hugging Face AI model to generate an image based on
|
|
57 |
input_prompt = gr.Textbox(label="Enter Prompt 📝", placeholder="E.g. 'A peaceful garden with a small cottage'")
|
58 |
output_generated_image = gr.Image(label="Generated Image")
|
59 |
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
)
|
69 |
-
iface.launch()
|
|
|
57 |
input_prompt = gr.Textbox(label="Enter Prompt 📝", placeholder="E.g. 'A peaceful garden with a small cottage'")
|
58 |
output_generated_image = gr.Image(label="Generated Image")
|
59 |
|
60 |
+
iface = gr.Interface(
|
61 |
+
fn=generate_image_from_prompt,
|
62 |
+
inputs=input_prompt,
|
63 |
+
outputs=output_generated_image,
|
64 |
+
title=title,
|
65 |
+
description=description
|
66 |
+
)
|
67 |
+
iface.launch()
|
|
|
|