Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,6 @@ from transformers import TFAutoModelForSequenceClassification
|
|
| 10 |
model = TFAutoModelForSequenceClassification.from_pretrained("ilan541/OncUponTim")
|
| 11 |
|
| 12 |
def predict(your_text):
|
| 13 |
-
df = split_text(text)
|
| 14 |
inp = tokenizer(your_text, return_tensors='tf')
|
| 15 |
if np.argmax(softmax(model(inp).logits)) == 0:
|
| 16 |
return 'This content is not of high standard. It needs editing. '
|
|
|
|
| 10 |
model = TFAutoModelForSequenceClassification.from_pretrained("ilan541/OncUponTim")
|
| 11 |
|
| 12 |
def predict(your_text):
|
|
|
|
| 13 |
inp = tokenizer(your_text, return_tensors='tf')
|
| 14 |
if np.argmax(softmax(model(inp).logits)) == 0:
|
| 15 |
return 'This content is not of high standard. It needs editing. '
|