Spaces:
Runtime error
Runtime error
ankush-003
commited on
Commit
•
7944b71
1
Parent(s):
af44470
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
from transformers import AutoTokenizer
|
3 |
-
|
4 |
tokenizer = AutoTokenizer.from_pretrained("distilbert-base-uncased")
|
5 |
|
6 |
def predict(payload, malitious):
|
|
|
1 |
import gradio as gr
|
2 |
+
import tensorflow as tf
|
3 |
from transformers import AutoTokenizer
|
4 |
+
from transformers import TFAutoModelForSequenceClassification
|
5 |
tokenizer = AutoTokenizer.from_pretrained("distilbert-base-uncased")
|
6 |
|
7 |
def predict(payload, malitious):
|