Spaces:
Paused
Paused
123
Browse files
app.py
CHANGED
@@ -4,6 +4,6 @@ tokenizer = AutoTokenizer.from_pretrained("liam168/c2-roberta-base-finetuned-dia
|
|
4 |
def greet(name):
|
5 |
result = tokenizer([name],padding=True,truncation=True,return_tensors="pt")
|
6 |
tensor_str = ','.join(map(str, result.input_ids.numpy()))
|
7 |
-
|
8 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
9 |
iface.launch()
|
|
|
4 |
def greet(name):
|
5 |
result = tokenizer([name],padding=True,truncation=True,return_tensors="pt")
|
6 |
tensor_str = ','.join(map(str, result.input_ids.numpy()))
|
7 |
+
return tensor_str
|
8 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
9 |
iface.launch()
|