Skip to content

Commit e42a1fa

Browse files
committed
limit Pride&Prejudice example in the UI to 10 chapters
1 parent 209f34f commit e42a1fa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

renard/ui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
)
1515
from renard.pipeline.graph_extraction import CoOccurrencesGraphExtractor
1616
from renard.graph_utils import graph_with_names
17-
from renard.resources.novels import load_novel
17+
from renard.resources.novels import load_novel_chapters
1818
import matplotlib.pyplot as plt
1919
import matplotlib.colors
2020
import networkx as nx
@@ -348,7 +348,7 @@ def render_ge_kwargs(ge_step: str):
348348
@gr.render(inputs=input_text_radio)
349349
def render_input_text(input_type: str):
350350
if input_type == "Predefined Example":
351-
pp = load_novel("pride_and_prejudice")
351+
pp = "\n".join(load_novel_chapters("pride_and_prejudice")[:10])
352352
text_area = gr.TextArea(
353353
label="Pride and Prejudice", value=pp, interactive=False
354354
)

0 commit comments

Comments
 (0)