This repository was archived by the owner on Nov 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010
1111def doit (account_name , prompt_text ):
1212
13- # Or place these in your cloudflare.cfg file
14- os .environ ['CLOUDFLARE_API_EXTRAS' ] = '/accounts/:id/ai/run/@cf/stabilityai/stable-diffusion-xl-base-1.0'
15-
1613 # We set the timeout because these AI calls take longer than normal API calls
1714 cf = CloudFlare .CloudFlare (global_request_timeout = 120 )
1815
Original file line number Diff line number Diff line change @@ -22,9 +22,6 @@ def user_agent():
2222
2323def doit (account_name , audio_data ):
2424
25- # Or place these in your cloudflare.cfg file
26- os .environ ['CLOUDFLARE_API_EXTRAS' ] = '/accounts/:id/ai/run/@cf/openai/whisper'
27-
2825 # We set the timeout because these AI calls take longer than normal API calls
2926 cf = CloudFlare .CloudFlare (global_request_timeout = 120 )
3027
Original file line number Diff line number Diff line change 1010
1111def doit (account_name , english_text ):
1212
13- # Or place these in your cloudflare.cfg file
14- os .environ ['CLOUDFLARE_API_EXTRAS' ] = '/accounts/:id/ai/run/@cf/meta/m2m100-1.2b'
15-
1613 # We set the timeout because these AI calls take longer than normal API calls
1714 cf = CloudFlare .CloudFlare (global_request_timeout = 120 )
1815
You can’t perform that action at this time.
0 commit comments