Kvikontent commited on
Commit
57f82e0
·
verified ·
1 Parent(s): 2620e80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -10
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
- with gr.Blocks(theme=gr.themes.Soft()) as app:
61
- caption = "Generate Image"
62
- iface = gr.Interface(
63
- fn=generate_image_from_prompt,
64
- inputs=input_prompt,
65
- outputs=output_generated_image,
66
- title=title,
67
- description=description
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()