Spaces:
Sleeping
Sleeping
use components api
Browse files
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"], [
|