Search
Setup for Free
CD
Cloudflare Developers
•
12mo ago
•
1 reply
LordQ
Hi, do you know how to get more than
Hi
, do you know how to get more than only 5 labels and scores as the result
?
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
83,498
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
L
LordQ
OP
•
1/9/25, 10:21 AM
That
's when I am doing the image classification using this example code
: export interface Env
{
AI
: Ai
;
}
export default
{
async fetch
(request
, env
)
: Promise
<Response
>
{
const res
= await fetch
(
"
https://cataas.com/cat
"
)
;
const blob
= await res
.arrayBuffer
(
)
;
const inputs
=
{
image
:
[
.
.
.new Uint8Array
(blob
)
]
,
}
;
const response
= await env
.AI
.run
(
"
@cf
/microsoft
/resnet
-50
"
,
inputs
)
;
return new Response
(JSON
.stringify
(response
)
)
;
}
,
} satisfies ExportedHandler
<Env
>
;
L
LordQ
OP
•
1/9/25, 10:39 AM
this model provides only first 5 results by default
? how to configure it
? thanks
Similar Threads
How to add Turnstile on more than 100 sites?
CD
Cloudflare Developers / general-help
2mo ago