saburq commited on
Commit
22cda6d
1 Parent(s): a0cdd0c

try changing to text

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -1,17 +1,20 @@
1
  import gradio as gr
2
  from inference_code import generate_images
3
 
 
4
  def generate_image_predictions(prompt):
5
  images = generate_images(prompt)
6
  return images
7
 
 
8
  iface = gr.Interface(
9
  fn=generate_image_predictions,
10
- inputs=gr.inputs.Textbox("Enter a text prompt here"),
11
  outputs=[gr.outputs.Image() for i in range(4)],
12
  title="Map Diffuser",
13
  description="Generates four images from a given text prompt.",
14
- examples=[["Satellite image of amsterdam with industrial area and highways"], ["Satellite image with forests and residential, no water"], ["A person playing guitar on a stage"]]
 
15
  )
16
 
17
- iface.launch()
 
1
  import gradio as gr
2
  from inference_code import generate_images
3
 
4
+
5
  def generate_image_predictions(prompt):
6
  images = generate_images(prompt)
7
  return images
8
 
9
+
10
  iface = gr.Interface(
11
  fn=generate_image_predictions,
12
+ inputs="text",
13
  outputs=[gr.outputs.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"], [
17
+ "Satellite image with forests and residential, no water"]]
18
  )
19
 
20
+ iface.launch()