File size: 945 Bytes
f205d49
 
 
22cda6d
f205d49
 
 
 
22cda6d
f205d49
 
6a64212
41b7f97
f205d49
8ba3b5a
 
 
 
 
 
 
 
12e5367
 
f205d49
 
22cda6d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import gradio as gr
from inference_code import generate_images


def generate_image_predictions(prompt):
    images = generate_images(prompt)
    return images


iface = gr.Interface(
    fn=generate_image_predictions,
    inputs=gr.components.Textbox(label="Enter a text prompt here"),
    outputs=gr.components.Image(label="Output Image"),
    title="Map Diffuser",
    description="""
        🌏 Generates four images from a given text prompt.
        Examples:
        - "Satellite image of amsterdam with industrial area and highways"
        - Watercolor style map of Amsterdam with residential area and highways
        - "Toner style map of Amsterdam with residential area and highways"
        - "Satellite image with forests and residential, no water"
    """
    # examples=[["Satellite image of amsterdam with industrial area and highways"], [
    #     "Satellite image with forests and residential, no water"]]
)

iface.launch()