dar-tau commited on
Commit
81e5b58
·
verified ·
1 Parent(s): 3e36699

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -109,6 +109,10 @@ tokenizer = AutoTokenizer.from_pretrained(tokenizer_path, token=os.environ['hf_t
109
  # demo
110
  json_output = gr.JSON()
111
  css = '''
 
 
 
 
112
  .bubble {
113
  border: 2px solid #000;
114
  border-radius: 10px;
@@ -193,7 +197,7 @@ with gr.Blocks(theme=gr.themes.Default(), css=css) as demo:
193
  btn = gr.Button('', visible=False, elem_classes=['token_btn'])
194
  tokens_container.append(btn)
195
 
196
- progress_dummy = gr.Text('', container=False)
197
  interpretation_bubbles = [gr.Textbox('', container=False, visible=False, elem_classes=['bubble'])
198
  for i in range(model.config.num_hidden_layers)]
199
 
 
109
  # demo
110
  json_output = gr.JSON()
111
  css = '''
112
+ #progress_dummy{
113
+ resize: none
114
+ }
115
+
116
  .bubble {
117
  border: 2px solid #000;
118
  border-radius: 10px;
 
197
  btn = gr.Button('', visible=False, elem_classes=['token_btn'])
198
  tokens_container.append(btn)
199
 
200
+ progress_dummy = gr.Text('', container=False, elem_id='progress_dummy')
201
  interpretation_bubbles = [gr.Textbox('', container=False, visible=False, elem_classes=['bubble'])
202
  for i in range(model.config.num_hidden_layers)]
203