JBHF's picture
Update ToDo.md
6bbef59 verified
|
raw
history blame
3.29 kB

ToDo

  • Get API keys and passwords from environment !: ...

  • Save the vectorstore in a persistent location !: HF Spaces has an ephermal, non-persistent file storage! If you save a file from within your (streamlit) application, that file is not kept when your session has ended. Solution: save that file in a persistent location such as AWS bucket, GITHUB, or on HF.

See: julien-c/persistent-space-dataset · Datasets at Hugging Face

https://huggingface.co/datasets/julien-c/persistent-space-dataset

HF SPACES STREAMLIT APPS - GET PASSWORDS AND ACCESS TOKENS FROM HF ENVIRONMENT ! - PERSISTENT STORAGE ON HF SPACES ! - EAGLE SHELTER VERTAAL APP ETC ! - app.py · julien-c/persistent-data at main - 20-03-2024 !!!!! !!!!! !!!!!

https://huggingface.co/spaces/julien-c/persistent-data/blob/main/app.py

——->

DUPLICATED TO: https://huggingface.co/spaces/JBHF/persistent-data?logs=container

EVERNOTE : https://www.evernote.com/shard/s313/nl/41973486/1b07098e-3376-4316-abb3-b3d0996ebf03/ HF SPACES STREAMLIT APPS - GET PASSWORDS AND ACCESS TOKENS FROM HF ENVIRONMENT ! - PERSISTENT STORAGE ON HF SPACES ! - EAGLE SHELTER VERTAAL APP ETC ! - app.py · julien-c/persistent-data at main - 20-03-2024 !!!!! !!!!! !!!!!

20-03-2024


HF SPACES STREAMLIT APPS - GET PASSWORDS AND ACCESS TOKENS FROM HF ENVIRONMENT ! - PERSISTENT STORAGE ON HF SPACES ! - EAGLE SHELTER VERTAAL APP ETC ! - app.py · julien-c/persistent-data at main - 20-03-2024 !!!!! !!!!! !!!!!

https://huggingface.co/spaces/julien-c/persistent-data/blob/main/app.py

——->

DUPLICATED TO: https://huggingface.co/spaces/JBHF/persistent-data?logs=container ...

  • Settings: wide mode as default setting

Zie: https://docs.streamlit.io/library/advanced-features/app-menu

  • File uploader:

https://docs.streamlit.io/library/api-reference/widgets/st.file_uploader

st.title(): This function allows you to add the title of the app.

st.header(): This function is used to set header of a section.

st.markdown(): This function is used to set a markdown of a section.

st.subheader(): This function is used to set sub-header of a section.

st.caption(): This function is used to write caption.

st.code(): This function is used to set a code.

st.latex(): This function is used to display mathematical expressions formatted as LaTeX.

st.title ("this is the app title") st.header("this is the header ") st.markdown("this is the markdown") st.subheader("this is the subheader") st.caption("this is the caption") st.code("x=2021") st.latex(r''' a+a r^1+a r^2+a r^3 ''')

  • Show the complete history of questions and answers: ...

  • Kies de taal waarin geantwoord moet worden: ...

  • Choose llm temperature using a slider: Geef de temperature weer in woorden, zoals deterministisch, enigszins creatief, behoorlijk creatief, heel creatief

...

  • Possibility to choose an alternative LLM: .,,

  • Show a set of example questions to the user VOORBEELDVRAGEN.txt

  • Tab pages in streamlit? st.tabs - Streamlit Docs

https://docs.streamlit.io/library/api-reference/layout/st.tabs

21-03-2024: TOE TE VOEGEN:

  • bewaren van de vragen die users hebben gesteld

  • stel bullshit vragen

  • Word to PDF:

https://www.ilovepdf.com/word_to_pdf

  • ...