Renzo commited on
Commit
69b36c1
·
1 Parent(s): b1a5d57

Update route map output to use WEBP format and adjust image properties

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -69,7 +69,14 @@ route_map_interface = gr.Interface(
69
  gr.Textbox(label="Route Data (JSON)", lines=3),
70
  gr.Textbox(label="Custom Title (Optional)", placeholder="e.g., My Route to Work")
71
  ],
72
- outputs="image",
 
 
 
 
 
 
 
73
  title="Generate Route Map",
74
  description="Extract route image and optionally add custom title overlay."
75
  )
 
69
  gr.Textbox(label="Route Data (JSON)", lines=3),
70
  gr.Textbox(label="Custom Title (Optional)", placeholder="e.g., My Route to Work")
71
  ],
72
+ outputs=gr.Image(
73
+ format="webp",
74
+ type="pil",
75
+ height=300,
76
+ width=400,
77
+ show_download_button=False,
78
+ interactive=False
79
+ ),
80
  title="Generate Route Map",
81
  description="Extract route image and optionally add custom title overlay."
82
  )