Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -27,8 +27,8 @@ max_target_length = 200
|
|
27 |
|
28 |
# Load your dataset
|
29 |
dataset = datasets.load_dataset("legacy107/newsqa", split="test")
|
30 |
-
dataset = dataset.shuffle()
|
31 |
-
dataset = dataset.select(
|
32 |
|
33 |
# Context chunking
|
34 |
def chunk_splitter(context, chunk_size=100, overlap=0.10):
|
@@ -142,7 +142,7 @@ iface = gr.Interface(
|
|
142 |
Textbox(label="Pretrained Model's Answer")
|
143 |
],
|
144 |
examples=list_examples(),
|
145 |
-
examples_per_page=
|
146 |
)
|
147 |
|
148 |
# Launch the Gradio interface
|
|
|
27 |
|
28 |
# Load your dataset
|
29 |
dataset = datasets.load_dataset("legacy107/newsqa", split="test")
|
30 |
+
# dataset = dataset.shuffle()
|
31 |
+
dataset = dataset.select([3, 9, 14, 24, 405, 51, 426, 471, 73, 34, 94, 0])
|
32 |
|
33 |
# Context chunking
|
34 |
def chunk_splitter(context, chunk_size=100, overlap=0.10):
|
|
|
142 |
Textbox(label="Pretrained Model's Answer")
|
143 |
],
|
144 |
examples=list_examples(),
|
145 |
+
examples_per_page=4
|
146 |
)
|
147 |
|
148 |
# Launch the Gradio interface
|