saburq commited on
Commit
81bf91c
·
1 Parent(s): 5abbf97

use components api

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,8 +9,8 @@ def generate_image_predictions(prompt):
9
 
10
  iface = gr.Interface(
11
  fn=generate_image_predictions,
12
- inputs="text",
13
- outputs=[gr.Image() for i in range(4)],
14
  title="Map Diffuser",
15
  description="Generates four images from a given text prompt.",
16
  examples=[["Satellite image of amsterdam with industrial area and highways"], [
 
9
 
10
  iface = gr.Interface(
11
  fn=generate_image_predictions,
12
+ inputs=gr.components.Textbox("Enter a text prompt here"),
13
+ outputs=[gr.components.Image() for i in range(4)],
14
  title="Map Diffuser",
15
  description="Generates four images from a given text prompt.",
16
  examples=[["Satellite image of amsterdam with industrial area and highways"], [