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

Problems displaying pdf in Streamlit Cloud #43

Closed
trbtl opened this issue Mar 9, 2024 · 15 comments
Closed

Problems displaying pdf in Streamlit Cloud #43

trbtl opened this issue Mar 9, 2024 · 15 comments
Labels
browser:chrom* bug Something isn't working

Comments

@trbtl
Copy link

trbtl commented Mar 9, 2024

Problem with displaying a pdf in Streamlit Cloud. The pdf displays correctly when I run it locally, but no luck with displaying it on Streamlit Cloud. Any ideas?

@trbtl trbtl mentioned this issue Mar 9, 2024
@lfoppiano
Copy link
Owner

could you share which browser you're using and, if possible, the url on the streamlit cloud?

@trbtl
Copy link
Author

trbtl commented Mar 11, 2024

I'm using the chrome browser as it is widely used. I've deployed to both the Streamlit and Azure cloud to see if it was provider specific issue,, but no joy on either one.
The Git repository is: https://github.com/trbtl/trbtl
Streamlit cloud: https://kidneychat.streamlit.app/
Azure cloud: https://kidneychat.azurewebsites.net/

A little context: We are a nonprofit group called The Road Back To Life. We provide support and help for kidney disease patients through Support Group meetings via Zoom as well as personal mentoring. We have a social media presence and our website at https://www.kidneysupportgroup.org/. This chat app is another possible avenue we'd like to make availabile to people who have questions about kidney disease.
Thank you,
Bob

@trbtl
Copy link
Author

trbtl commented Mar 11, 2024

@trbtl
Copy link
Author

trbtl commented Mar 11, 2024 via email

@lfoppiano
Copy link
Owner

Hi @trbtl,
thanks for sharing the details.

I apologise, in this period I cannot work on this project full time so all fixes are delayed, as I would prefer to merge them once they are reviewed.

I believe that the PR #38 should solve your problem.

In the meantime, I can suggest you some ways to try to make it work with version 0.0.7.
I think that if you specify the height you should be able to see the PDF with Chrome.
I did not test it, I based this suggestion on the fact that the tests that are failing on the main branch using chromium (we can approximate it to Chrome) are the ones where the pdf_viewer is called without height argument.

@lfoppiano
Copy link
Owner

I tested with Brave browser and Chromium (I don't have Chrome, unfortunately) and I could not reproduce the same issue you had. @trbtl did you have any luck in providing the height parameter?

@lfoppiano lfoppiano added the bug Something isn't working label Mar 15, 2024
@trbtl
Copy link
Author

trbtl commented Mar 15, 2024 via email

@lfoppiano
Copy link
Owner

With 0.0.9, without the height parameter, it should work, but to confirm could you give it a try?

@trbtl
Copy link
Author

trbtl commented Mar 19, 2024 via email

@trbtl
Copy link
Author

trbtl commented Mar 22, 2024 via email

@lfoppiano
Copy link
Owner

@trbtl Thanks for testing quickly.
The height being necessary is a separate issue I will deal with in #41.

@lfoppiano
Copy link
Owner

@trbtl I've released version 0.0.10, it should resolve the problem occurring when the height is not specified. Could you try it out, please?

@trbtl
Copy link
Author

trbtl commented Mar 31, 2024 via email

@trbtl
Copy link
Author

trbtl commented Apr 3, 2024 via email

@lfoppiano
Copy link
Owner

Great. Thanks for testing it.

BTW I've added a new task for the hyperlink #44.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser:chrom* bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants