Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -10,6 +10,7 @@ et = time.time()
|
|
10 |
print(f'Model loaded. Took {et-st} seconds.')
|
11 |
|
12 |
def tokenize(text, checked):
|
|
|
13 |
tokens = tk.encode(text)
|
14 |
|
15 |
colors = ['rgba(107,64,216,.3)', 'rgba(104,222,122,.4)', 'rgba(244,172,54,.4)', 'rgba(239,65,70,.4)', 'rgba(39,181,234,.4)']
|
@@ -44,4 +45,4 @@ interface = gr.Interface(
|
|
44 |
show_progress='hidden',
|
45 |
api_name='tokenize',
|
46 |
allow_flagging='never'
|
47 |
-
).launch(inbrowser=True)
|
|
|
10 |
print(f'Model loaded. Took {et-st} seconds.')
|
11 |
|
12 |
def tokenize(text, checked):
|
13 |
+
print('Text:', text)
|
14 |
tokens = tk.encode(text)
|
15 |
|
16 |
colors = ['rgba(107,64,216,.3)', 'rgba(104,222,122,.4)', 'rgba(244,172,54,.4)', 'rgba(239,65,70,.4)', 'rgba(39,181,234,.4)']
|
|
|
45 |
show_progress='hidden',
|
46 |
api_name='tokenize',
|
47 |
allow_flagging='never'
|
48 |
+
).launch(inbrowser=True)
|