Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,10 +2,9 @@ import gradio as gr
|
|
2 |
import spaces
|
3 |
from transformers import pipeline
|
4 |
|
5 |
-
token_skill_classifier = pipeline(model="jjzha/jobbert_skill_extraction", aggregation_strategy="first")
|
6 |
-
token_knowledge_classifier = pipeline(model="jjzha/jobbert_knowledge_extraction", aggregation_strategy="first")
|
7 |
-
|
8 |
-
token_knowledge_classifier.to("cuda")
|
9 |
|
10 |
examples = [
|
11 |
"Knowing Python is a plus",
|
|
|
2 |
import spaces
|
3 |
from transformers import pipeline
|
4 |
|
5 |
+
token_skill_classifier = pipeline(model="jjzha/jobbert_skill_extraction", aggregation_strategy="first", device=0)
|
6 |
+
token_knowledge_classifier = pipeline(model="jjzha/jobbert_knowledge_extraction", aggregation_strategy="first", device=0)
|
7 |
+
|
|
|
8 |
|
9 |
examples = [
|
10 |
"Knowing Python is a plus",
|