Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P55958
(An Untitled Masterwork)
Active
Public
Actions
Authored by
klausman
on Jan 31 2024, 1:09 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F41734704: raw-paste-data.txt
Jan 31 2024, 1:09 PM
2024-01-31 13:09:16 (UTC+0)
Subscribers
None
$ time curl -sq localhost
:
8080
/v
1
/models/revertrisk-language-agnostic
:
predict -X POST -d '
{
"lang"
:
"en"
,
"rev_id"
:
12345
}
'|jq
{
"model_name"
:
"revertrisk-language-agnostic"
,
"model_version"
:
"3"
,
"wiki_db"
:
"enwiki"
,
"revision_id"
:
12345
,
"cache_hit"
:
false
,
<------------------------------------ NOTE
"output"
:
{
"prediction"
:
false
,
"probabilities"
:
{
"true"
:
0.17687281966209412
,
"false"
:
0.8231271803379059
}
}
}
real
0
m
0.409
s
user
0
m
0.010
s
sys
0
m
0.011
s
~ $ time curl -sq localhost
:
8080
/v
1
/models/revertrisk-language-agnostic
:
predict -X POST -d '
{
"lang"
:
"en"
,
"rev_id"
:
12345
}
'|jq
{
"model_name"
:
"revertrisk-language-agnostic"
,
"model_version"
:
"3"
,
"wiki_db"
:
"enwiki"
,
"revision_id"
:
12345
,
"cache_hit"
:
true
,
<------------------------------------ NOTE
"output"
:
{
"prediction"
:
false
,
"probabilities"
:
{
"true"
:
0.17687281966209412
,
"false"
:
0.8231271803379059
}
}
}
real
0
m
0.018
s
user
0
m
0.007
s
sys
0
m
0.012
s
Event Timeline
klausman
created this paste.
Jan 31 2024, 1:09 PM
2024-01-31 13:09:16 (UTC+0)
klausman
updated the paste's language from
autodetect
to
json
.
Log In to Comment