Spaces:
Running
Running
Commit
·
98d4a93
1
Parent(s):
bc6074e
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ hf_saver = gr.HuggingFaceDatasetSaver(HF_TOKEN, "wfh-problematic")
|
|
10 |
|
11 |
# model path in hugginface
|
12 |
model_path = "yabramuvdi/distilbert-wfh"
|
13 |
-
tokenizer = DistilBertTokenizer.from_pretrained(
|
14 |
model = DistilBertForSequenceClassification.from_pretrained(model_path)
|
15 |
|
16 |
# create a pipeline for predictions
|
@@ -23,8 +23,8 @@ title = "Work From Home Predictor"
|
|
23 |
description = "Demo application that predicts the pressence of work from home in any given sequence of text."
|
24 |
article = "" # text at the end of the app
|
25 |
examples = [
|
26 |
-
["This is a work from home position", 0.
|
27 |
-
["This position does not allow working from home", 0.
|
28 |
]
|
29 |
|
30 |
#%%
|
|
|
10 |
|
11 |
# model path in hugginface
|
12 |
model_path = "yabramuvdi/distilbert-wfh"
|
13 |
+
tokenizer = DistilBertTokenizer.from_pretrained(model_path)
|
14 |
model = DistilBertForSequenceClassification.from_pretrained(model_path)
|
15 |
|
16 |
# create a pipeline for predictions
|
|
|
23 |
description = "Demo application that predicts the pressence of work from home in any given sequence of text."
|
24 |
article = "" # text at the end of the app
|
25 |
examples = [
|
26 |
+
["This is a work from home position", 0.9],
|
27 |
+
["This position does not allow working from home", 0.5],
|
28 |
]
|
29 |
|
30 |
#%%
|