Spaces:
Sleeping
Sleeping
huolongguo10
commited on
Commit
•
2ad9277
1
Parent(s):
9facccd
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from transformers import AutoModelForSequenceClassification, pipeline, AutoToken
|
|
4 |
import gradio as gr
|
5 |
data = load_dataset("huolongguo10/insecure",split="train").shuffle(seed=42).select(range(1000))
|
6 |
task_evaluator = evaluator("text-classification")
|
7 |
-
model = AutoModelForSequenceClassification.from_pretrained("huolongguo10/check_sec")
|
8 |
tokenizer = AutoTokenizer.from_pretrained("huolongguo10/check_sec")
|
9 |
# 1. Pass a model name or path
|
10 |
eval_results = task_evaluator.compute(
|
|
|
4 |
import gradio as gr
|
5 |
data = load_dataset("huolongguo10/insecure",split="train").shuffle(seed=42).select(range(1000))
|
6 |
task_evaluator = evaluator("text-classification")
|
7 |
+
model = AutoModelForSequenceClassification.from_pretrained("huolongguo10/check_sec")
|
8 |
tokenizer = AutoTokenizer.from_pretrained("huolongguo10/check_sec")
|
9 |
# 1. Pass a model name or path
|
10 |
eval_results = task_evaluator.compute(
|