Spaces:
Running
on
Zero
Running
on
Zero
Suchinthana
commited on
Commit
·
0b075c8
1
Parent(s):
084a1c8
Added prompt to output
Browse files
app.py
CHANGED
@@ -178,7 +178,7 @@ def handle_query(query):
|
|
178 |
# Generate satellite image
|
179 |
satellite_image = generate_satellite_image(map_image, mask_image, response['output']['feature_representation']['properties']['description'])
|
180 |
|
181 |
-
return map_image, satellite_image
|
182 |
|
183 |
# Gradio interface
|
184 |
with gr.Blocks() as demo:
|
@@ -188,8 +188,8 @@ with gr.Blocks() as demo:
|
|
188 |
with gr.Row():
|
189 |
map_output = gr.Image(label="Map Visualization")
|
190 |
satellite_output = gr.Image(label="Generated Satellite Image")
|
191 |
-
|
192 |
-
submit_btn.click(handle_query, inputs=[query_input], outputs=[map_output, satellite_output])
|
193 |
|
194 |
if __name__ == "__main__":
|
195 |
demo.launch()
|
|
|
178 |
# Generate satellite image
|
179 |
satellite_image = generate_satellite_image(map_image, mask_image, response['output']['feature_representation']['properties']['description'])
|
180 |
|
181 |
+
return map_image, satellite_image, response
|
182 |
|
183 |
# Gradio interface
|
184 |
with gr.Blocks() as demo:
|
|
|
188 |
with gr.Row():
|
189 |
map_output = gr.Image(label="Map Visualization")
|
190 |
satellite_output = gr.Image(label="Generated Satellite Image")
|
191 |
+
image_prompt = gr.Textbox(label="Image Prompt Used")
|
192 |
+
submit_btn.click(handle_query, inputs=[query_input], outputs=[map_output, satellite_output, image_prompt])
|
193 |
|
194 |
if __name__ == "__main__":
|
195 |
demo.launch()
|