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:
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
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: