dar-tau commited on
Commit
1b45ce5
1 Parent(s): 4e62c15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -6
app.py CHANGED
@@ -175,18 +175,21 @@ with gr.Blocks(theme=gr.themes.Default(), css='styles.css') as demo:
175
  original_prompt_raw.render()
176
  original_prompt_btn = gr.Button('Output Token List', variant='primary')
177
 
178
- gr.Markdown('### Here go the tokens of the prompt (click on the one to explore)')
179
-
180
- with gr.Row():
181
- for btn in tokens_container:
182
- btn.render()
183
-
184
  gr.Markdown('## Choose Your Interpretation Prompt')
185
  with gr.Group('Interpretation'):
186
  interpretation_prompt = gr.Text(suggested_interpretation_prompts[0], label='Interpretation Prompt')
187
  interpretation_prompt_examples = gr.Examples([[p] for p in suggested_interpretation_prompts],
188
  [interpretation_prompt], cache_examples=False)
189
 
 
 
 
 
 
190
  with gr.Accordion(open=False, label='Generation Settings'):
191
  with gr.Row():
192
  num_tokens = gr.Slider(1, 100, step=1, value=20, label='Max. # of Tokens')
 
175
  original_prompt_raw.render()
176
  original_prompt_btn = gr.Button('Output Token List', variant='primary')
177
 
178
+ gr.Markdown('''
179
+ ## Tokens
180
+ ### Here go the tokens of the prompt (click on the one to explore)
181
+ ''')
 
 
182
  gr.Markdown('## Choose Your Interpretation Prompt')
183
  with gr.Group('Interpretation'):
184
  interpretation_prompt = gr.Text(suggested_interpretation_prompts[0], label='Interpretation Prompt')
185
  interpretation_prompt_examples = gr.Examples([[p] for p in suggested_interpretation_prompts],
186
  [interpretation_prompt], cache_examples=False)
187
 
188
+
189
+ with gr.Row():
190
+ for btn in tokens_container:
191
+ btn.render()
192
+
193
  with gr.Accordion(open=False, label='Generation Settings'):
194
  with gr.Row():
195
  num_tokens = gr.Slider(1, 100, step=1, value=20, label='Max. # of Tokens')