thomascuddihy commited on
Commit
2aa9837
·
1 Parent(s): b59be81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -22,8 +22,9 @@ def clf_result(text_input: str) -> str:
22
  if "best" not in text_input.lower():
23
  res = "Please enter a sentence with the word `best`"
24
  return res
25
- model_res = clf(text_input)[0]
26
  print(f"{model_res = }")
 
27
  label_res = model_res["label"]
28
  score = model_res["score"]
29
  res = f"Result: {label_res}\n\nScore: {score}"
 
22
  if "best" not in text_input.lower():
23
  res = "Please enter a sentence with the word `best`"
24
  return res
25
+ model_res = clf(text_input)
26
  print(f"{model_res = }")
27
+ model_res = model_res[0]
28
  label_res = model_res["label"]
29
  score = model_res["score"]
30
  res = f"Result: {label_res}\n\nScore: {score}"