From 16ac94c0baa22b568bca8154b6e4ec5c3113c332 Mon Sep 17 00:00:00 2001 From: Simon Belbeoch Date: Mon, 4 Nov 2024 20:28:15 +0100 Subject: [PATCH 1/2] v1 --- public/v4/apps/whisper-asr-webservice.yml | 36 +++++++++++++++++++++ public/v4/logos/whisper-asr-webservice.png | Bin 0 -> 2276 bytes 2 files changed, 36 insertions(+) create mode 100644 public/v4/apps/whisper-asr-webservice.yml create mode 100644 public/v4/logos/whisper-asr-webservice.png diff --git a/public/v4/apps/whisper-asr-webservice.yml b/public/v4/apps/whisper-asr-webservice.yml new file mode 100644 index 000000000..5cc840792 --- /dev/null +++ b/public/v4/apps/whisper-asr-webservice.yml @@ -0,0 +1,36 @@ +captainVersion: 4 +services: + $$cap_appname: + image: onerahmet/openai-whisper-asr-webservice:$$cap_app_version + volumes: + - $$cap_appname-data:/var/lib/postgresql/data + restart: always + environment: + POSTGRES_USER: $$cap_pg_user + caproverExtra: + containerHttpPort: '9000' +caproverOneClickApp: + variables: + - id: $$cap_app_version + label: Version + defaultValue: 'v1.6.0' + description: Check out their Docker page for the valid tags https://hub.docker.com/r/onerahmet/openai-whisper-asr-webservice/tags + instructions: + start: |- + Whisper ASR Webservice is a web service that provides an API for the Whisper ASR model. + Enter your configuration parameters and click on next. A Whisper ASR Webservice container will be created for you. The process will take about a minute for the process to finish. + end: |- + Whisper ASR Webservice is deployed and available as `$$cap_appname`. + I suggest you to increase the max size of the request body in the Nginx configuration file. + client_max_body_size 500m; + proxy_read_timeout 1800; + proxy_connect_timeout 1800; + proxy_send_timeout 1800; + send_timeout 1800; + Be careful with the max size of the request body. It can cause a DoS attack if it is too high. + Be careful with the timeout values. It can cause a timeout error if it is too low. + Be careful with the default setup your service is not secure. You should add a security layer to your service. + displayName: openai-whisper-asr-webservice + isOfficial: false + description: The openai-whisper-asr-webservice is a web service that provides an API for the Whisper ASR model. + documentation: https://hub.docker.com/r/onerahmet/openai-whisper-asr-webservice/ diff --git a/public/v4/logos/whisper-asr-webservice.png b/public/v4/logos/whisper-asr-webservice.png new file mode 100644 index 0000000000000000000000000000000000000000..4708b64c9ff4e2aa7fde80718ee1313fd8eb77a2 GIT binary patch literal 2276 zcmVU3t;^JOj zUYnbnrlzLAz`!{;6-&*eukUwaE;tO zZR13~AOAoR>|zDxTw^Qa>eeDx}U7q;4HaptfNbuG!RTc02)-`>nQDw36LIqYfWT#4BF{Sayz z?8u@=dxD5Zx_R#&(15FFha?Q3N~#s=2Xy$E^g+Kk&V_2Hn4&b#b!(Hf@Rl;jEL;sJDAX+4JZSMqe1ECdec%tgXrB^|o$dw! zjveH*$s%q0S{S7HtrzKZ7*C2o~fF0GIvgoN(Li-EC(u-Au|s9$28*3%sCdS{Er6 zav@l~EwOFjt11ux?2VH+BHdSgqhcK`X zH*pT&Zh`jk^!tkjL-RCC710n1d0I0`K|VQDlLHAVv~(R8}S zI><)JXoxSF&Lr^76L_f>aSCL0t+ATOHyjt#&^&qUEDw_!;6+K6F(_-^zudN=y}&M9 zRLch)?Fh-FF@~w||2KiPoEi80J~a?Yem)-pqkPvEQw*QqUID@gp0C@$b06TUL@Roc zs%45|FZqJ-kCzPr7|+2A_#Smv=({2wA(&9-CCDXM7N#e*&+-MHBxo>1ZfD|y*LG?P zV?wm!1Rl>Dm{plrSd(xlV0z6C1|!H@ITrYy(;8MYZ)>1lzYpec@d^a5MgcqG3-CzY zYcCL_G+Yb?uSNnxmM~+JK(Jr)Os+3$Z=@=GDywn8u?h_0^=7?^%Xr*1VRi8K8^FNU z6Q872WkluwKY^uz#)6L>F7msM{{@Bbn&aEpV$5E6j3LZ@Z(dBU^c z-audw7|zz1Vsf5q#gCH;b#Lf19(Y3UQ)WusRG=A@rBiYq9{{tcU%f~S(c?M7+Yfjw z0*JfTs?{u%K_#H~0&d@r4Z9XoNm_`Ul5>$Mj2|!@DQ?CBzQ3cCVhcyoc3X5lz+l0z z=81Y0tA@yGni_i=kd5^eq)l8Fs#R&3n77Zw+zS}ILS;QEN^vW=REmfTc7+zbX7~U@ z_COqP`+k%vMH@TuC9NUG-1q=PSaZThaC*;wl%fr#1bxZ@or(vrsU4GWp8-qloL;FF zC2~lEB@bX&m4-TSyzqZ6Sq-X1!sa7Ww_#x8_GxAc8i}G*X*Y6$g1^-XRxPQRb8zCGQ^sM$uqLwUzT;q_?%)6f?dU07gyW zkp|2YRVTZ=<*My8{lK{2lXw%JTZSqXjV)?53*^QDoDm(7@eRDHgj@v)_Gb3*B*$?b znBJyYLJ2%*l$DJ~x+#%fO3PR_@P=Rh+CSWMQ0cdlkERc`p(|jn3N0w)MLT8=wEj9U z4UPtzB+rMd(xm3CMHX781DUC@QKwv(^gWSGTO0I{eS+DAJ6qsH3yBZnB~JVLy>T@Z zm@OZ?TEAp>s_62t+Z^0C`)2NGxc{mUR}N?Sio|s_L_7%ZHiwY2BVToAWj!l4-gq~? z)V-%IZx9vcQL(%9?e%vfqZVVafL!747p)%++FNKd1m zWa?L1ql=SryVFP|t14_LF_NO){JANUt&JMh?n6wC8ywwnEwf&Wnx3v!(kVQ?;kQs* zJAk^Vr)xVyT!%C2r?9WNwa0OWXbIMyZDx|nqr0E?>fkWFxE Date: Tue, 5 Nov 2024 08:17:19 +0100 Subject: [PATCH 2/2] Apply suggestions from code review better description Co-authored-by: Kasra Bigdeli --- public/v4/apps/whisper-asr-webservice.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/v4/apps/whisper-asr-webservice.yml b/public/v4/apps/whisper-asr-webservice.yml index 5cc840792..e334ea7ce 100644 --- a/public/v4/apps/whisper-asr-webservice.yml +++ b/public/v4/apps/whisper-asr-webservice.yml @@ -21,12 +21,14 @@ caproverOneClickApp: Enter your configuration parameters and click on next. A Whisper ASR Webservice container will be created for you. The process will take about a minute for the process to finish. end: |- Whisper ASR Webservice is deployed and available as `$$cap_appname`. - I suggest you to increase the max size of the request body in the Nginx configuration file. + It is recommended to increase the max size of the request body in the Nginx configuration file. + ``` client_max_body_size 500m; proxy_read_timeout 1800; proxy_connect_timeout 1800; proxy_send_timeout 1800; send_timeout 1800; + ``` Be careful with the max size of the request body. It can cause a DoS attack if it is too high. Be careful with the timeout values. It can cause a timeout error if it is too low. Be careful with the default setup your service is not secure. You should add a security layer to your service.