Spaces:
Runtime error
Runtime error
Farsi, Ali
commited on
Commit
β’
c89f2ed
1
Parent(s):
8ea8a0e
dev
Browse files
app.py
CHANGED
@@ -5,10 +5,10 @@ tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased")
|
|
5 |
|
6 |
sequence = "In a hole in the ground there lived a hobbit."
|
7 |
res = tokenizer(sequence)
|
8 |
-
|
9 |
def greet(name):
|
10 |
return "Hello " + name + "!!"
|
11 |
|
12 |
-
iface = gr.Interface(fn=greet, inputs="text", outputs=
|
13 |
iface.launch()
|
14 |
|
|
|
5 |
|
6 |
sequence = "In a hole in the ground there lived a hobbit."
|
7 |
res = tokenizer(sequence)
|
8 |
+
print(res)
|
9 |
def greet(name):
|
10 |
return "Hello " + name + "!!"
|
11 |
|
12 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="test")
|
13 |
iface.launch()
|
14 |
|