dar-tau commited on
Commit
436dc7d
·
verified ·
1 Parent(s): 87f00d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -159,7 +159,9 @@ with gr.Blocks(theme=gr.themes.Default(), css='styles.css') as demo:
159
 
160
  # with gr.Column(scale=1):
161
  # gr.Markdown('<span style="font-size:180px;">🤔</span>')
162
-
 
 
163
  with gr.Group('Interpretation'):
164
  interpretation_prompt = gr.Text(suggested_interpretation_prompts[0], label='Interpretation Prompt')
165
  gr.Examples([[p] for p in suggested_interpretation_prompts], [interpretation_prompt], cache_examples=False)
@@ -176,7 +178,9 @@ with gr.Blocks(theme=gr.themes.Default(), css='styles.css') as demo:
176
  # dataset = dataset.shuffle(buffer_size=2000).take(num_examples)
177
  # dataset = [[row[info['text_col']]] for row in dataset]
178
  # gr.Examples(dataset, [original_prompt_raw])
179
-
 
 
180
  with gr.Group():
181
  original_prompt_raw.render()
182
  original_prompt_btn = gr.Button('Compute', variant='primary')
@@ -189,9 +193,11 @@ with gr.Blocks(theme=gr.themes.Default(), css='styles.css') as demo:
189
  use_gpu = False # gr.Checkbox(value=False, label='Use GPU')
190
  progress_dummy = gr.Markdown('', elem_id='progress_dummy')
191
 
 
192
  interpretation_bubbles = [gr.Textbox('', container=False, visible=False, elem_classes=['bubble',
193
  'even_bubble' if i % 2 == 0 else 'odd_bubble'])
194
  for i in range(model.config.num_hidden_layers)]
 
195
 
196
  with gr.Accordion(open=False, label='Settings'):
197
  with gr.Row():
 
159
 
160
  # with gr.Column(scale=1):
161
  # gr.Markdown('<span style="font-size:180px;">🤔</span>')
162
+ gr.Markdown('''
163
+ ## Choose Your Interpretation Prompt
164
+ ''')
165
  with gr.Group('Interpretation'):
166
  interpretation_prompt = gr.Text(suggested_interpretation_prompts[0], label='Interpretation Prompt')
167
  gr.Examples([[p] for p in suggested_interpretation_prompts], [interpretation_prompt], cache_examples=False)
 
178
  # dataset = dataset.shuffle(buffer_size=2000).take(num_examples)
179
  # dataset = [[row[info['text_col']]] for row in dataset]
180
  # gr.Examples(dataset, [original_prompt_raw])
181
+ gr.Markdown('''
182
+ ## The Prompt to Analyze
183
+ ''')
184
  with gr.Group():
185
  original_prompt_raw.render()
186
  original_prompt_btn = gr.Button('Compute', variant='primary')
 
193
  use_gpu = False # gr.Checkbox(value=False, label='Use GPU')
194
  progress_dummy = gr.Markdown('', elem_id='progress_dummy')
195
 
196
+
197
  interpretation_bubbles = [gr.Textbox('', container=False, visible=False, elem_classes=['bubble',
198
  'even_bubble' if i % 2 == 0 else 'odd_bubble'])
199
  for i in range(model.config.num_hidden_layers)]
200
+
201
 
202
  with gr.Accordion(open=False, label='Settings'):
203
  with gr.Row():