We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 209f34f commit e42a1faCopy full SHA for e42a1fa
1 file changed
renard/ui.py
@@ -14,7 +14,7 @@
14
)
15
from renard.pipeline.graph_extraction import CoOccurrencesGraphExtractor
16
from renard.graph_utils import graph_with_names
17
-from renard.resources.novels import load_novel
+from renard.resources.novels import load_novel_chapters
18
import matplotlib.pyplot as plt
19
import matplotlib.colors
20
import networkx as nx
@@ -348,7 +348,7 @@ def render_ge_kwargs(ge_step: str):
348
@gr.render(inputs=input_text_radio)
349
def render_input_text(input_type: str):
350
if input_type == "Predefined Example":
351
- pp = load_novel("pride_and_prejudice")
+ pp = "\n".join(load_novel_chapters("pride_and_prejudice")[:10])
352
text_area = gr.TextArea(
353
label="Pride and Prejudice", value=pp, interactive=False
354
0 commit comments