alexanderHSG commited on
Commit
dd2d138
·
1 Parent(s): ce83441

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -14
app.py CHANGED
@@ -475,23 +475,13 @@ console.log("Observer is set to monitor changes in the document body.");
475
 
476
  ## GRADIO UI LAYOUT & FUNCTIONALITY
477
  ## ---------------------------------------------------------------------------------------------------------------------
 
 
 
 
478
 
479
  with gr.Blocks(title='Slide Inspo', theme='Soft', js=scripts, head = js_click).queue(default_concurrency_limit=1) as demo:
480
 
481
- with gr.Row():
482
- graphVisual = gr.HTML()
483
- highest_similarities_gradio_list = gr.List(type="array", interactive=False, visible=False)
484
-
485
- with gr.Row():
486
- with gr.Column(scale=1):
487
- nodeSelector = gr.Dropdown(label="Filter for nodes", choices=["SLIDE_DECK", "SLIDE", "STORYPOINT"], value=["SLIDE_DECK", "SLIDE", "STORYPOINT"], multiselect=True, scale=1)
488
- with gr.Column(scale=1):
489
- filterBTN = gr.Button("Filter Graph")
490
- filterBTN.click(fn= construct_hmtl, inputs=[highest_similarities_gradio_list, nodeSelector], outputs=[graphVisual]).then(js = js_click)
491
-
492
-
493
-
494
-
495
  with gr.Row():
496
  with gr.Column(scale=1):
497
  gr.Markdown("# 1. Input: 🔍")
@@ -524,6 +514,17 @@ with gr.Blocks(title='Slide Inspo', theme='Soft', js=scripts, head = js_click).q
524
  outputs = [storyline_output_JSON, storyline_output_storypoint_name_list, storyline_output_pretty])
525
 
526
 
 
 
 
 
 
 
 
 
 
 
 
527
 
528
 
529
 
 
475
 
476
  ## GRADIO UI LAYOUT & FUNCTIONALITY
477
  ## ---------------------------------------------------------------------------------------------------------------------
478
+ graphVisual = gr.HTML()
479
+ highest_similarities_gradio_list = gr.List(type="array", interactive=False, visible=False)
480
+ nodeSelector = gr.Dropdown(label="Filter for nodes", choices=["SLIDE_DECK", "SLIDE", "STORYPOINT"], value=["SLIDE_DECK", "SLIDE", "STORYPOINT"], multiselect=True, scale=1)
481
+ filterBTN = gr.Button("Filter Graph")
482
 
483
  with gr.Blocks(title='Slide Inspo', theme='Soft', js=scripts, head = js_click).queue(default_concurrency_limit=1) as demo:
484
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
485
  with gr.Row():
486
  with gr.Column(scale=1):
487
  gr.Markdown("# 1. Input: 🔍")
 
514
  outputs = [storyline_output_JSON, storyline_output_storypoint_name_list, storyline_output_pretty])
515
 
516
 
517
+ with gr.Row():
518
+ with gr.Column(scale=1):
519
+ nodeSelector.render()
520
+ with gr.Column(scale=1):
521
+ filterBTN.render()
522
+ filterBTN.click(fn= construct_hmtl, inputs=[highest_similarities_gradio_list, nodeSelector], outputs=[graphVisual]).then(js = js_click)
523
+
524
+ with gr.Row():
525
+ graphVisual.render()
526
+
527
+
528
 
529
 
530