Spaces:
Runtime error
Runtime error
Kvikontent
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -19,11 +19,6 @@ def generate_image_from_prompt(prompt_text):
|
|
19 |
|
20 |
title = "KVIImager 2.0 Demo 🎨"
|
21 |
description = "This app uses Hugging Face AI model to generate an image based on the provided text prompt 🖼️."
|
22 |
-
examples = [
|
23 |
-
["A peaceful garden with a small cottage 🏡"],
|
24 |
-
["A colorful abstract painting with geometric shapes 🎨"],
|
25 |
-
["A serene beach at sunset 🌅"]
|
26 |
-
]
|
27 |
|
28 |
css_styles = {
|
29 |
'body': {
|
@@ -53,7 +48,7 @@ input_prompt = gr.Textbox(label="Enter Prompt 📝", placeholder="E.g. 'A peacef
|
|
53 |
output_generated_image = gr.Image(label="Generated Image")
|
54 |
|
55 |
gr.Interface(
|
56 |
-
generate_image_from_prompt,
|
57 |
inputs=input_prompt,
|
58 |
outputs=output_generated_image,
|
59 |
title=title,
|
|
|
19 |
|
20 |
title = "KVIImager 2.0 Demo 🎨"
|
21 |
description = "This app uses Hugging Face AI model to generate an image based on the provided text prompt 🖼️."
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
css_styles = {
|
24 |
'body': {
|
|
|
48 |
output_generated_image = gr.Image(label="Generated Image")
|
49 |
|
50 |
gr.Interface(
|
51 |
+
fn=generate_image_from_prompt,
|
52 |
inputs=input_prompt,
|
53 |
outputs=output_generated_image,
|
54 |
title=title,
|