Spaces:
Running
on
Zero
Running
on
Zero
Suchinthana
commited on
Commit
·
3647dae
1
Parent(s):
a5e00fd
Added mask to outputs
Browse files
app.py
CHANGED
@@ -185,7 +185,7 @@ def handle_query(query):
|
|
185 |
# Generate satellite image
|
186 |
satellite_image = generate_satellite_image(map_image, mask_image, response['output']['feature_representation']['properties']['description'])
|
187 |
|
188 |
-
return map_image, satellite_image, response
|
189 |
|
190 |
# Gradio interface
|
191 |
with gr.Blocks() as demo:
|
@@ -195,6 +195,7 @@ with gr.Blocks() as demo:
|
|
195 |
with gr.Row():
|
196 |
map_output = gr.Image(label="Map Visualization")
|
197 |
satellite_output = gr.Image(label="Generated Satellite Image")
|
|
|
198 |
image_prompt = gr.Textbox(label="Image Prompt Used")
|
199 |
submit_btn.click(handle_query, inputs=[query_input], outputs=[map_output, satellite_output, image_prompt])
|
200 |
|
|
|
185 |
# Generate satellite image
|
186 |
satellite_image = generate_satellite_image(map_image, mask_image, response['output']['feature_representation']['properties']['description'])
|
187 |
|
188 |
+
return map_image, satellite_image, mask, response
|
189 |
|
190 |
# Gradio interface
|
191 |
with gr.Blocks() as demo:
|
|
|
195 |
with gr.Row():
|
196 |
map_output = gr.Image(label="Map Visualization")
|
197 |
satellite_output = gr.Image(label="Generated Satellite Image")
|
198 |
+
mask_output = gr.Image(label="Mask")
|
199 |
image_prompt = gr.Textbox(label="Image Prompt Used")
|
200 |
submit_btn.click(handle_query, inputs=[query_input], outputs=[map_output, satellite_output, image_prompt])
|
201 |
|