dar-tau commited on
Commit
db48de1
ยท
verified ยท
1 Parent(s): fb77d95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -10
app.py CHANGED
@@ -157,17 +157,12 @@ for i in range(MAX_PROMPT_TOKENS):
157
  tokens_container.append(btn)
158
 
159
  with gr.Blocks(theme=gr.themes.Default(), css='styles.css') as demo:
160
-
161
  with gr.Row():
162
  with gr.Column(scale=5):
163
  gr.Markdown('# ๐Ÿ˜Ž Self-Interpreting Models')
164
 
165
  gr.Markdown('<b style="color: #8B0000;">Model outputs are not filtered and might include undesired language!</b>')
166
 
167
- # gr.Markdown(
168
- # '**๐Ÿ‘พ This space is a simple introduction to the emerging trend of models interpreting their OWN hidden states in free form natural language!!๐Ÿ‘พ**',
169
- # # elem_classes=['explanation_accordion']
170
- # )
171
  gr.Markdown(
172
  '''
173
  **๐Ÿ‘พ This space is a simple introduction to the emerging trend of models interpreting their OWN hidden states in free form natural language!!๐Ÿ‘พ**
@@ -176,9 +171,6 @@ with gr.Blocks(theme=gr.themes.Default(), css='styles.css') as demo:
176
  We will follow the SelfIE implementation in this space for concreteness. Patchscopes are so general that they encompass many other interpretation techniques too!!!
177
  ''', line_breaks=True)
178
 
179
- # gr.Markdown('**๐Ÿ‘พ The idea is really simple: models are able to understand their own hidden states by nature! ๐Ÿ‘พ**',
180
- # # elem_classes=['explanation_accordion']
181
- # )
182
  gr.Markdown(
183
  '''
184
  **๐Ÿ‘พ The idea is really simple: models are able to understand their own hidden states by nature! ๐Ÿ‘พ**
@@ -193,7 +185,7 @@ with gr.Blocks(theme=gr.themes.Default(), css='styles.css') as demo:
193
  with gr.Group():
194
  model_chooser = gr.Radio(choices=list(model_info.keys()), value=model_name)
195
 
196
- with gr.Blocks() as demo_blocks:
197
  gr.Markdown('## Choose Your Interpretation Prompt')
198
  with gr.Group('Interpretation'):
199
  interpretation_prompt = gr.Text(suggested_interpretation_prompts[0], label='Interpretation Prompt')
@@ -221,7 +213,6 @@ with gr.Blocks(theme=gr.themes.Default(), css='styles.css') as demo:
221
  for btn in tokens_container:
222
  btn.render()
223
 
224
-
225
  with gr.Accordion(open=False, label='Generation Settings'):
226
  with gr.Row():
227
  num_tokens = gr.Slider(1, 100, step=1, value=20, label='Max. # of Tokens')
 
157
  tokens_container.append(btn)
158
 
159
  with gr.Blocks(theme=gr.themes.Default(), css='styles.css') as demo:
 
160
  with gr.Row():
161
  with gr.Column(scale=5):
162
  gr.Markdown('# ๐Ÿ˜Ž Self-Interpreting Models')
163
 
164
  gr.Markdown('<b style="color: #8B0000;">Model outputs are not filtered and might include undesired language!</b>')
165
 
 
 
 
 
166
  gr.Markdown(
167
  '''
168
  **๐Ÿ‘พ This space is a simple introduction to the emerging trend of models interpreting their OWN hidden states in free form natural language!!๐Ÿ‘พ**
 
171
  We will follow the SelfIE implementation in this space for concreteness. Patchscopes are so general that they encompass many other interpretation techniques too!!!
172
  ''', line_breaks=True)
173
 
 
 
 
174
  gr.Markdown(
175
  '''
176
  **๐Ÿ‘พ The idea is really simple: models are able to understand their own hidden states by nature! ๐Ÿ‘พ**
 
185
  with gr.Group():
186
  model_chooser = gr.Radio(choices=list(model_info.keys()), value=model_name)
187
 
188
+ with gr.Group() as demo_blocks:
189
  gr.Markdown('## Choose Your Interpretation Prompt')
190
  with gr.Group('Interpretation'):
191
  interpretation_prompt = gr.Text(suggested_interpretation_prompts[0], label='Interpretation Prompt')
 
213
  for btn in tokens_container:
214
  btn.render()
215
 
 
216
  with gr.Accordion(open=False, label='Generation Settings'):
217
  with gr.Row():
218
  num_tokens = gr.Slider(1, 100, step=1, value=20, label='Max. # of Tokens')