Lin-jun-xiang / docGPT-langchain

🔐Free GPT-3.5 chat with your docs (PDF, WORD, CSV, TXT)
https://docgpt-app.streamlit.app/
MIT License
230 stars 49 forks source link

Run script without streamlit #7

Open Anas099X opened 7 months ago

Anas099X commented 7 months ago

Issue you'd like to raise.

Hey. I was wondering if there was a way to run the app.py script without need for streamlit. I want to do that so I can run it on my own program/website later.

Suggestion:

No response

Lin-jun-xiang commented 1 month ago

@Anas099X

You can just call the create_doc_gpt and get_response function in your script.

https://github.com/Lin-jun-xiang/docGPT-langchain/blob/f369908cfc5ca100fa231e7189ed2afde29d4d49/app.py#L10-L11