jonathanjordan21 commited on
Commit
2cb17e6
1 Parent(s): 6a128a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ def greet_json():
35
 
36
  @app.post("/language_detection")
37
  async def sentiment_score(inp: InputText):
38
- inputs = tokenizer(inp.text, return_tensors='pt')
39
  with torch.no_grad():
40
  logits = language_model(**inputs).logits
41
 
 
35
 
36
  @app.post("/language_detection")
37
  async def sentiment_score(inp: InputText):
38
+ inputs = language_tokenizer(inp.text, return_tensors='pt')
39
  with torch.no_grad():
40
  logits = language_model(**inputs).logits
41