Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -97,7 +97,7 @@ def predict(features, classifier, id_to_label):
|
|
| 97 |
def predict(text):
|
| 98 |
with torch.no_grad():
|
| 99 |
feats = gpt2_features(text, tokenizer, model, sent_cut_en)
|
| 100 |
-
out = predict(
|
| 101 |
return out
|
| 102 |
|
| 103 |
|
|
|
|
| 97 |
def predict(text):
|
| 98 |
with torch.no_grad():
|
| 99 |
feats = gpt2_features(text, tokenizer, model, sent_cut_en)
|
| 100 |
+
out = predict(feats, clf, ['Human Written', 'LLM Generated'])
|
| 101 |
return out
|
| 102 |
|
| 103 |
|