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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -57,13 +57,13 @@ 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
+ 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()