Spaces:
Running
Running
update
Browse files
app.py
CHANGED
@@ -309,18 +309,21 @@ def create_gradio_interface():
|
|
309 |
|
310 |
with gr.Column(scale=2):
|
311 |
output_text = gr.Markdown(label="Analysis Results")
|
312 |
-
with gr.
|
313 |
gr.Markdown("## Feature Dashboard")
|
314 |
feature_id_text = gr.Text(
|
315 |
label="Currently viewing feature", show_label=False
|
316 |
)
|
317 |
-
dashboard_frame = gr.HTML(
|
|
|
|
|
|
|
318 |
|
319 |
def update_dashboard(text):
|
320 |
output, dashboard_url, feature_id = analyze(text)
|
321 |
return (
|
322 |
output,
|
323 |
-
f"<iframe src='{dashboard_url}' width='100%' height='600px' frameborder='0'></iframe>",
|
324 |
f"Currently viewing Feature {feature_id} - Most active feature in your content",
|
325 |
)
|
326 |
|
|
|
309 |
|
310 |
with gr.Column(scale=2):
|
311 |
output_text = gr.Markdown(label="Analysis Results")
|
312 |
+
with gr.Group():
|
313 |
gr.Markdown("## Feature Dashboard")
|
314 |
feature_id_text = gr.Text(
|
315 |
label="Currently viewing feature", show_label=False
|
316 |
)
|
317 |
+
dashboard_frame = gr.HTML(
|
318 |
+
value="Analysis results will appear here",
|
319 |
+
label="Feature Dashboard",
|
320 |
+
)
|
321 |
|
322 |
def update_dashboard(text):
|
323 |
output, dashboard_url, feature_id = analyze(text)
|
324 |
return (
|
325 |
output,
|
326 |
+
f"<iframe src='{dashboard_url}' width='100%' height='600px' frameborder='0' style='border: 1px solid #eee; border-radius: 8px;'></iframe>",
|
327 |
f"Currently viewing Feature {feature_id} - Most active feature in your content",
|
328 |
)
|
329 |
|