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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -12
app.py CHANGED
@@ -175,22 +175,12 @@ 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('''
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')
196
  repetition_penalty = gr.Slider(1., 10., value=1, label='Repetition Penalty')
@@ -202,7 +192,15 @@ with gr.Blocks(theme=gr.themes.Default(), css='styles.css') as demo:
202
  temperature = gr.Slider(0., 5., value=0.6, label='Temperature')
203
  top_k = gr.Slider(1, 1000, value=50, step=1, label='top k')
204
  top_p = gr.Slider(0., 1., value=0.95, label='top p')
205
-
 
 
 
 
 
 
 
 
206
  progress_dummy = gr.Markdown('', elem_id='progress_dummy')
207
  interpretation_bubbles = [gr.Textbox('', container=False, visible=False,
208
  elem_classes=['bubble', 'even_bubble' if i % 2 == 0 else 'odd_bubble']
 
175
  original_prompt_raw.render()
176
  original_prompt_btn = gr.Button('Output Token List', variant='primary')
177
 
 
 
 
 
178
  gr.Markdown('## Choose Your Interpretation Prompt')
179
  with gr.Group('Interpretation'):
180
  interpretation_prompt = gr.Text(suggested_interpretation_prompts[0], label='Interpretation Prompt')
181
  interpretation_prompt_examples = gr.Examples([[p] for p in suggested_interpretation_prompts],
182
  [interpretation_prompt], cache_examples=False)
183
+ with gr.Accordion(open=False, label='Generation Settings'):
 
 
 
 
 
 
184
  with gr.Row():
185
  num_tokens = gr.Slider(1, 100, step=1, value=20, label='Max. # of Tokens')
186
  repetition_penalty = gr.Slider(1., 10., value=1, label='Repetition Penalty')
 
192
  temperature = gr.Slider(0., 5., value=0.6, label='Temperature')
193
  top_k = gr.Slider(1, 1000, value=50, step=1, label='top k')
194
  top_p = gr.Slider(0., 1., value=0.95, label='top p')
195
+
196
+ gr.Markdown('''
197
+ ## Tokens
198
+ ### Here go the tokens of the prompt (click on the one to explore)
199
+ ''')
200
+ with gr.Row():
201
+ for btn in tokens_container:
202
+ btn.render()
203
+
204
  progress_dummy = gr.Markdown('', elem_id='progress_dummy')
205
  interpretation_bubbles = [gr.Textbox('', container=False, visible=False,
206
  elem_classes=['bubble', 'even_bubble' if i % 2 == 0 else 'odd_bubble']