dar-tau commited on
Commit
e45f7c4
1 Parent(s): 15da79a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -211,15 +211,15 @@ with gr.Blocks(theme=gr.themes.Default(), css=css) as demo:
211
  Here are some examples of prompts we can analyze their internal representations:
212
  ''')
213
 
214
- for info in dataset_info:
215
- with gr.Tab(info['name']):
216
- num_examples = 10
217
- dataset = load_dataset(info['hf_repo'], split='train', streaming=True)
218
- if 'filter' in info:
219
- dataset = dataset.filter(info['filter'])
220
- dataset = dataset.shuffle(buffer_size=2000).take(num_examples)
221
- dataset = [[row[info['text_col']]] for row in dataset]
222
- gr.Examples(dataset, [original_prompt_raw])
223
 
224
  with gr.Group():
225
  original_prompt_raw.render()
 
211
  Here are some examples of prompts we can analyze their internal representations:
212
  ''')
213
 
214
+ # for info in dataset_info:
215
+ # with gr.Tab(info['name']):
216
+ # num_examples = 10
217
+ # dataset = load_dataset(info['hf_repo'], split='train', streaming=True)
218
+ # if 'filter' in info:
219
+ # dataset = dataset.filter(info['filter'])
220
+ # dataset = dataset.shuffle(buffer_size=2000).take(num_examples)
221
+ # dataset = [[row[info['text_col']]] for row in dataset]
222
+ # gr.Examples(dataset, [original_prompt_raw])
223
 
224
  with gr.Group():
225
  original_prompt_raw.render()