Anisha Bhatnagar
commited on
Commit
·
e392716
1
Parent(s):
eb3968a
debugging zoom payload issue
Browse files
app.py
CHANGED
|
@@ -283,13 +283,28 @@ def app(share=False, use_cluster_feats=False):
|
|
| 283 |
with gr.Column(scale=3):
|
| 284 |
# axis_ranges = gr.Textbox(visible=False, elem_id="axis-ranges")
|
| 285 |
axis_ranges = gr.Textbox(
|
| 286 |
-
visible=True,
|
| 287 |
elem_id="axis-ranges",
|
| 288 |
interactive=True,
|
| 289 |
show_label=False,
|
| 290 |
container=False,
|
| 291 |
-
value=""
|
|
|
|
| 292 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 293 |
plot = gr.Plot(
|
| 294 |
label="Visualization",
|
| 295 |
elem_id="feature-plot",
|
|
|
|
| 283 |
with gr.Column(scale=3):
|
| 284 |
# axis_ranges = gr.Textbox(visible=False, elem_id="axis-ranges")
|
| 285 |
axis_ranges = gr.Textbox(
|
| 286 |
+
visible=True, # Keep it visible to DOM
|
| 287 |
elem_id="axis-ranges",
|
| 288 |
interactive=True,
|
| 289 |
show_label=False,
|
| 290 |
container=False,
|
| 291 |
+
value="",
|
| 292 |
+
elem_classes=["hidden-textbox"] # Add custom CSS class
|
| 293 |
)
|
| 294 |
+
|
| 295 |
+
# Add this CSS to hide it visually
|
| 296 |
+
gr.HTML("""
|
| 297 |
+
<style>
|
| 298 |
+
.hidden-textbox {
|
| 299 |
+
position: absolute !important;
|
| 300 |
+
left: -9999px !important;
|
| 301 |
+
width: 1px !important;
|
| 302 |
+
height: 1px !important;
|
| 303 |
+
opacity: 0 !important;
|
| 304 |
+
pointer-events: none !important;
|
| 305 |
+
}
|
| 306 |
+
</style>
|
| 307 |
+
""")
|
| 308 |
plot = gr.Plot(
|
| 309 |
label="Visualization",
|
| 310 |
elem_id="feature-plot",
|