dar-tau commited on
Commit
f04b4d1
1 Parent(s): 7f534c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -61,7 +61,6 @@ def reset_model(model_name, *extra_components, with_extra_components=True):
61
  global_state.tokenizer = AutoTokenizer.from_pretrained(tokenizer_path, token=os.environ['hf_token'])
62
  gc.collect()
63
  if with_extra_components:
64
- for i in range(len(extra_components)):
65
  return ([welcome_message.format(model_name=model_name)]
66
  + [gr.Textbox(visible=False) for _ in range(len(interpretation_bubbles))]
67
  + extra_components)
 
61
  global_state.tokenizer = AutoTokenizer.from_pretrained(tokenizer_path, token=os.environ['hf_token'])
62
  gc.collect()
63
  if with_extra_components:
 
64
  return ([welcome_message.format(model_name=model_name)]
65
  + [gr.Textbox(visible=False) for _ in range(len(interpretation_bubbles))]
66
  + extra_components)