clarkchan commited on
Commit
92610d2
1 Parent(s): 0cfb9f1
Files changed (1) hide show
  1. app.py +1 -1
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()