Skip to content

Commit 86cc1c0

Browse files
authored
Merge pull request #43 from gperdrizet/classifier
Some work on tuning classifier decision threshold. Shelving this for now - sklearn has some cool tools, but they require a more recent python version.
2 parents 0b7bcb4 + 258d92e commit 86cc1c0

File tree

2 files changed

+485
-37
lines changed

2 files changed

+485
-37
lines changed

api/functions/flask_app.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,7 @@ def score_text(
141141
a human.'''
142142

143143
elif human_probability < machine_probability:
144-
reply = f'''{machine_probability:.1f}% chance that this text was written by\
145-
a machine.'''
144+
reply = f'{machine_probability:.1f}% chance that this text was written by a machine.'
146145

147146
elif response_mode == 'verbose':
148147

0 commit comments

Comments
 (0)