Suchinthana commited on
Commit
abf3554
·
1 Parent(s): 8d22a2e

logout update

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -50,8 +50,10 @@ def tokenize_text(tokenizer_name_1, tokenizer_name_2, text, hf_token=None):
50
  tokenizer_1_output = tokenize_with_model(tokenizer_name_1)
51
  tokenizer_2_output = tokenize_with_model(tokenizer_name_2)
52
 
53
- if hf_token:
54
  logout()
 
 
55
 
56
  return (
57
  f"<p><strong>Tokenizer 1:</strong><br>{tokenizer_1_output[0]}</p>",
 
50
  tokenizer_1_output = tokenize_with_model(tokenizer_name_1)
51
  tokenizer_2_output = tokenize_with_model(tokenizer_name_2)
52
 
53
+ try:
54
  logout()
55
+ except Exception as err:
56
+ pass
57
 
58
  return (
59
  f"<p><strong>Tokenizer 1:</strong><br>{tokenizer_1_output[0]}</p>",