Spaces:
Sleeping
Sleeping
Furkan Akkurt
commited on
Commit
·
98d296a
1
Parent(s):
f6ccd66
update app
Browse files
app.py
CHANGED
|
@@ -7,5 +7,14 @@ def tokenize(data):
|
|
| 7 |
result = { "tokens": response }
|
| 8 |
return result
|
| 9 |
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
result = { "tokens": response }
|
| 8 |
return result
|
| 9 |
|
| 10 |
+
demo = gr.Interface(
|
| 11 |
+
fn=tokenize,
|
| 12 |
+
inputs="text",
|
| 13 |
+
outputs="text",
|
| 14 |
+
title="Tokenizer",
|
| 15 |
+
examples=[
|
| 16 |
+
"Ben oraya geliyorum.",
|
| 17 |
+
"Sen neden gelmiyorsun?"
|
| 18 |
+
]
|
| 19 |
+
)
|
| 20 |
+
demo.launch()
|