legacy107 commited on
Commit
e76e2af
1 Parent(s): 7f29cd4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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(range(10))
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=1
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