Spaces:
Runtime error
Runtime error
try changing to text
Browse files
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=
|
| 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"], [
|
|
|
|
| 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()
|