h2oai / h2ogpt

Private chat with local GPT with document, images, video, etc. 100% private, Apache 2.0. Supports oLLaMa, Mixtral, llama.cpp, and more. Demo: https://gpt.h2o.ai/ https://gpt-docs.h2o.ai/
http://h2o.ai
Apache License 2.0
11.4k stars 1.25k forks source link

sources not visible in shared folders collections #1512

Closed santosh-gkg closed 7 months ago

santosh-gkg commented 7 months ago

image they are working fine in localhost but not in a ngrok app

pseudotensor commented 7 months ago

I don't think it's ngrok or not. If that is a shared doc, you'll need to ensure that is added to extra_allowed_paths so gradio knows it's ok to allow that to be downloaded.

Or you can ensure langchain_mode_paths is filled so when used it'll fill the allowed_paths for gradio:

https://github.com/h2oai/h2ogpt/blob/030fed4032529e5c3ebbeb879cbaafde8b77df2b/src/gradio_runner.py#L6344-L6348

Without doing anything, sources and download works on gpt.h2o.ai, which uses ngrok for MyData that uses a "users" directory.

Note that from sources it'll download the thing, while in document view that's for viewing the thing.

pseudotensor commented 7 months ago

If you still see issues, it might be good to give me an example, and I can reach out to gradio team if it's not h2ogpt issue.

santosh-gkg commented 7 months ago

thank you very much it's working i added the collections folder name in paths WhatsApp Image 2024-03-29 at 21 11 48_06e34013

pseudotensor commented 7 months ago

Great. It should work if you just pass as an extra_allowed_paths on CLI instead of changing code.

santosh-gkg commented 7 months ago

Okay