davila7 / file-gpt

Start a chat with any document with Ada Embedding and Davinci Completion
MIT License
142 stars 34 forks source link

whether this repo could deployed on vercel #5

Open tiwentichat opened 1 year ago

tiwentichat commented 1 year ago

err like this in frontend

st.experimental_memo is deprecated. Please use the new command st.cache_data instead, which has the same behavior. More information in our docs.

st.experimental_memo is deprecated. Please use the new command st.cache_data instead, which has the same behavior. More information in our docs.

st.experimental_memo is deprecated. Please use the new command st.cache_data instead, which has the same behavior. More information in our docs.

st.experimental_memo is deprecated. Please use the new command st.cache_data instead, which has the same behavior. More information in our docs.

st.experimental_memo is deprecated. Please use the new command st.cache_data instead, which has the same behavior. More information in our docs.

TypeError: unsupported operand type(s) for |: 'type' and '_GenericAlias' Traceback: File "/Users/apple/opt/anaconda3/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script exec(code, module.dict) File "/Users/apple/codework/codedownload/file-gpt-main/app.py", line 4, in from utils import ( File "/Users/apple/codework/codedownload/file-gpt-main/utils.py", line 167, in def wrap_text_in_html(text: str | List[str]) -> str:

tuyendv-it commented 1 year ago

if you don't use HTML as an input file, limit files like txt, pdf, doc, csv, then i suggest you can remove the function def wrap_text_in_html(text: str | List[str]) -> str in file ultis.py