dar-tau commited on
Commit
a79dee8
·
verified ·
1 Parent(s): cf1c2c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -12
app.py CHANGED
@@ -197,18 +197,17 @@ with gr.Blocks(theme=gr.themes.Default(), css=css) as demo:
197
  with gr.Group('Interpretation'):
198
  interpretation_prompt = gr.Text(suggested_interpretation_prompts[0], label='Interpretation Prompt')
199
 
200
- with gr.Accordion('Examples'):
201
- gr.Markdown('''
202
- Here are some examples of prompts we can analyze their internal representations
203
- ''')
204
-
205
- for info in dataset_info:
206
- with gr.Tab(info['name']):
207
- num_examples = 10
208
- dataset = load_dataset(info['hf_repo'], split='train', streaming=True)
209
- dataset = dataset.shuffle(buffer_size=2000).take(num_examples)
210
- dataset = [[row[info['text_col']]] for row in dataset]
211
- gr.Examples(dataset, [original_prompt_raw])
212
 
213
  with gr.Group():
214
  original_prompt_raw.render()
 
197
  with gr.Group('Interpretation'):
198
  interpretation_prompt = gr.Text(suggested_interpretation_prompts[0], label='Interpretation Prompt')
199
 
200
+ gr.Markdown('''
201
+ Here are some examples of prompts we can analyze their internal representations
202
+ ''')
203
+
204
+ for info in dataset_info:
205
+ with gr.Tab(info['name']):
206
+ num_examples = 10
207
+ dataset = load_dataset(info['hf_repo'], split='train', streaming=True)
208
+ dataset = dataset.shuffle(buffer_size=2000).take(num_examples)
209
+ dataset = [[row[info['text_col']]] for row in dataset]
210
+ gr.Examples(dataset, [original_prompt_raw])
 
211
 
212
  with gr.Group():
213
  original_prompt_raw.render()