dlsmallw commited on
Commit
a283e47
·
1 Parent(s): aa4fbce

Update predict.py

Browse files
Files changed (1) hide show
  1. scripts/predict.py +1 -13
scripts/predict.py CHANGED
@@ -114,16 +114,4 @@ class InferenceHandler:
114
  for item in ml_op_list:
115
  results.append(max(0.0, item))
116
 
117
- return results
118
-
119
- ih = InferenceHandler('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')
120
- discr_text = """Islam is hell . We Asian hate isalm...Islam bring only destruction..killing. rape... rufugee.... Islam is hell .. Asian thought 😂😂sorry...but is true"""
121
-
122
- nondiscr_text = """Absolutely excellent as ever, and yes, cycling is fabulous for mental health.. bike when you'€™re happy,
123
- bike when you'€™re sad, shout at the rain, scream inwardly at a complex hill climb and get that endorphin rush from being outside..
124
- and smile at your fellow cyclists (and passing chickens, in my experience, a wee bwark at a chook makes many things better)"""
125
-
126
- result1 = ih.classify_text(discr_text)
127
- result2 = ih.classify_text(nondiscr_text)
128
- print(json.dumps(result1, indent=4))
129
- print(json.dumps(result2, indent=4))
 
114
  for item in ml_op_list:
115
  results.append(max(0.0, item))
116
 
117
+ return results