garrettbaber commited on
Commit
35902f0
1 Parent(s): 0406460

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ def processInput(input):
6
  tokenizer = AutoTokenizer.from_pretrained("garrettbaber/twitter-roberta-base-fear-intensity")
7
  tokens = tokenizer(input, return_tensors="pt")
8
  print('Running tokens in model')
9
- outputs = model(**inputs)
10
  return outputs
11
 
12
  app = gr.Interface(fn=processInput, inputs="text", outputs="text")
 
6
  tokenizer = AutoTokenizer.from_pretrained("garrettbaber/twitter-roberta-base-fear-intensity")
7
  tokens = tokenizer(input, return_tensors="pt")
8
  print('Running tokens in model')
9
+ outputs = model(**tokens)
10
  return outputs
11
 
12
  app = gr.Interface(fn=processInput, inputs="text", outputs="text")