Boubou78000 commited on
Commit
dd8b6dd
1 Parent(s): 3661f4b
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,11 +23,11 @@ with gr.Blocks(title="Dataset token counter") as app:
23
  prompt = gr.Textbox(label="Dataset", elem_id="dataset", info="", placeholder="")
24
  tokenizer = gr.Textbox(label="Tokenizer", elem_id="tokenizer", info="", placeholder="openai-community/gpt2", value="openai-community/gpt2")
25
  split = gr.Textbox(label="Split (default: train)", elem_id="split", info="", placeholder="train", value="train")
26
- tokens = gr.Label(label="Tokens", elem_id="tokens", info="")
27
  prompt.submit().success(
28
  ReturnTokens,
29
  inputs=[prompt,tokenizer,split],
30
  outputs=[tokens]
31
  )
32
 
33
- app.launch()
 
23
  prompt = gr.Textbox(label="Dataset", elem_id="dataset", info="", placeholder="")
24
  tokenizer = gr.Textbox(label="Tokenizer", elem_id="tokenizer", info="", placeholder="openai-community/gpt2", value="openai-community/gpt2")
25
  split = gr.Textbox(label="Split (default: train)", elem_id="split", info="", placeholder="train", value="train")
26
+ tokens = gr.Label(label="Tokens", elem_id="tokens")
27
  prompt.submit().success(
28
  ReturnTokens,
29
  inputs=[prompt,tokenizer,split],
30
  outputs=[tokens]
31
  )
32
 
33
+ app.launch(share=True)