Spaces:
Sleeping
Sleeping
alexanderHSG commited on
Commit Β·
4b7ad63
1
Parent(s): 2965989
Update app.py
Browse files
app.py
CHANGED
|
@@ -368,7 +368,7 @@ async () => {
|
|
| 368 |
layout: {
|
| 369 |
improvedLayout: true,
|
| 370 |
hierarchical: true,
|
| 371 |
-
clusterThreshold:
|
| 372 |
},
|
| 373 |
},
|
| 374 |
initialCypher: queryCypher,
|
|
@@ -473,16 +473,18 @@ with gr.Blocks(title='Slide Inspo', theme='Soft', js=scripts, head = js_click) a
|
|
| 473 |
label="How many storypoints?",
|
| 474 |
scale =1)
|
| 475 |
storyline_output_JSON = gr.JSON(visible=False)
|
| 476 |
-
storyline_output_storypoint_name_list = gr.List(visible=
|
| 477 |
btn = gr.Button("Build Storyline π¦")
|
| 478 |
|
| 479 |
with gr.Column(scale=1):
|
| 480 |
gr.Markdown("# 2. Storyline: π¦")
|
| 481 |
|
| 482 |
-
storyline_output_pretty = gr.Textbox(label="Your Storyline:", lines=13, scale=3)
|
| 483 |
submit_button = gr.Button("β‘ Find Slides β‘", elem_id="visGraph")
|
| 484 |
submit_button.click(fn= coordinate_simcalculation, inputs=[storyline_output_storypoint_name_list], outputs=[graphVisual]).then(js = js_click)
|
| 485 |
|
|
|
|
|
|
|
| 486 |
btn.click(slide_deck_storyline,
|
| 487 |
inputs = [storyline_prompt, nr_storypoints_to_build],
|
| 488 |
outputs = [storyline_output_JSON, storyline_output_storypoint_name_list, storyline_output_pretty])
|
|
|
|
| 368 |
layout: {
|
| 369 |
improvedLayout: true,
|
| 370 |
hierarchical: true,
|
| 371 |
+
clusterThreshold: 100,
|
| 372 |
},
|
| 373 |
},
|
| 374 |
initialCypher: queryCypher,
|
|
|
|
| 473 |
label="How many storypoints?",
|
| 474 |
scale =1)
|
| 475 |
storyline_output_JSON = gr.JSON(visible=False)
|
| 476 |
+
storyline_output_storypoint_name_list = gr.List(visible=True, type="array", interactive=True, row_count = [1,"fixed"], label="Edit you Storypoints: π", scale=1)
|
| 477 |
btn = gr.Button("Build Storyline π¦")
|
| 478 |
|
| 479 |
with gr.Column(scale=1):
|
| 480 |
gr.Markdown("# 2. Storyline: π¦")
|
| 481 |
|
| 482 |
+
storyline_output_pretty = gr.Textbox(label="Your Storyline:", lines=13, scale=3, interactive=False)
|
| 483 |
submit_button = gr.Button("β‘ Find Slides β‘", elem_id="visGraph")
|
| 484 |
submit_button.click(fn= coordinate_simcalculation, inputs=[storyline_output_storypoint_name_list], outputs=[graphVisual]).then(js = js_click)
|
| 485 |
|
| 486 |
+
|
| 487 |
+
|
| 488 |
btn.click(slide_deck_storyline,
|
| 489 |
inputs = [storyline_prompt, nr_storypoints_to_build],
|
| 490 |
outputs = [storyline_output_JSON, storyline_output_storypoint_name_list, storyline_output_pretty])
|