Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

whisper-webui behind proxy, cannot download output files #383

Closed
jefke-glider opened this issue Nov 7, 2024 · 6 comments
Closed

whisper-webui behind proxy, cannot download output files #383

jefke-glider opened this issue Nov 7, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@jefke-glider
Copy link

I am using ubuntu 22.04 behind an apache proxy. Everything works fine, i can transcribe files, youtube, etc.., but i cannot download the output files, because the download button seems to reference to http instead of https.
I started the app with this command :
python app.py --whisper_type insanely_fast_whisper --server_name 0.0.0.0 --username ***** --password ******
I can download the uploaded audio file via the button on the right, this is referencing https.
I

@jefke-glider jefke-glider added the bug Something isn't working label Nov 7, 2024
@jhj0517
Copy link
Owner

jhj0517 commented Nov 7, 2024

Hi, I don't understand the problem, when you are using apache proxy the download link starts from http not https so you can't download the files?

*I have looked into the problem,
Maybe ssl_verify would help: : https://discuss.huggingface.co/t/how-to-run-gradio-with-0-0-0-0-and-https/38003/2

@jefke-glider
Copy link
Author

yes indeed, the download link starts from http. When I hover the download link (the size of the output file) there isn't even a prefix to the link in the status bar, but the moment I copy or save as the link, it seems to be http

Jef

@jhj0517
Copy link
Owner

jhj0517 commented Nov 7, 2024

I just added some SSL related CLI options in #385,

You can try using --ssl_verify false.

python app.py --whisper_type insanely_fast_whisper --server_name 0.0.0.0 --username ***** --password ****** --ssl_verify false

hope it helps

@jefke-glider
Copy link
Author

this did not solve the problem, still http to download the output file

@jhj0517
Copy link
Owner

jhj0517 commented Nov 7, 2024

I tried to reproduce with same CLI arguments, but I was able to download the files even though they're http.
I guess this is difficult to reproduce or something else is problematic to download the file.

@jefke-glider
Copy link
Author

I found the problem, it was in the apache reverse proxy setting :
ProxyPreserveHost On
ProxyRequests Off
ProxyPass / http://whisper:7860/
ProxyPassReverse / http://whisper:7860/

    RequestHeader set X-Forwarded-Proto 'https' env=HTTP

-> removed this env=HTTP and it worked!
Thanks for your time and help!

Jef Peeraer
University of Antwerp
Departement of Arts

@jhj0517 jhj0517 closed this as completed Nov 7, 2024
@jhj0517 jhj0517 reopened this Nov 8, 2024
@jhj0517 jhj0517 closed this as completed Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants