Spaces:
Sleeping
Sleeping
datt30
commited on
Commit
·
1d53959
1
Parent(s):
739e183
update gradio deprecated functions
Browse files
app.py
CHANGED
@@ -7,9 +7,9 @@ def generate_image(input_promp, control_image):
|
|
7 |
return new_geo_painting.generate_painting(input_promp, control_image)
|
8 |
|
9 |
|
10 |
-
input_promp = gr.
|
11 |
-
control_image = gr.
|
12 |
-
output_image = gr.
|
13 |
|
14 |
iface = gr.Interface(generate_image, [input_promp, control_image], output_image)
|
15 |
iface.launch()
|
|
|
7 |
return new_geo_painting.generate_painting(input_promp, control_image)
|
8 |
|
9 |
|
10 |
+
input_promp = gr.Textbox(label="Input promp")
|
11 |
+
control_image = gr.Image(label="Select a control image")
|
12 |
+
output_image = gr.Image(label="Generated geospatial image")
|
13 |
|
14 |
iface = gr.Interface(generate_image, [input_promp, control_image], output_image)
|
15 |
iface.launch()
|