00ber commited on
Commit
1a38637
1 Parent(s): c89eb38

removed unused function

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -20,10 +20,7 @@ def count_tokens(
20
  ):
21
  tokenizer = get_tokenizer(model)
22
  toks = tokenizer.encode(target_text)
23
- yield len(toks.ids)
24
-
25
- def greet(name, intensity):
26
- return "Hello, " + name + "!" * int(intensity)
27
 
28
  demo = gr.Interface(
29
  fn=count_tokens,
 
20
  ):
21
  tokenizer = get_tokenizer(model)
22
  toks = tokenizer.encode(target_text)
23
+ yield f"Token count: {len(toks.ids)}"
 
 
 
24
 
25
  demo = gr.Interface(
26
  fn=count_tokens,