Update ToDo.md
Browse files
ToDo.md
CHANGED
@@ -13,6 +13,63 @@ ToDo:
|
|
13 |
|
14 |
|
15 |
- Save the vectorstore in a persistent location !:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
HF Spaces has an ephermal, non-persistent file storage!
|
17 |
If you save a file from within your (streamlit) application,
|
18 |
that file is not kept when your session has ended.
|
@@ -488,6 +545,39 @@ with st.status("Downloading data...", expanded=True) as status:
|
|
488 |
- Voorbeeld vragen die je aan de AI kunt stellen
|
489 |
- Etc
|
490 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
491 |
|
492 |
|
493 |
- Show a set of example questions to the user
|
|
|
13 |
|
14 |
|
15 |
- Save the vectorstore in a persistent location !:
|
16 |
+
|
17 |
+
https://huggingface.co/docs/hub/spaces-storage
|
18 |
+
!!!!! !!!!! !!!!!
|
19 |
+
|
20 |
+
Disk usage on Spaces
|
21 |
+
Every Space comes with a small amount of disk storage. This disk space is ephemeral,
|
22 |
+
meaning its content will be lost if your Space restarts or is stopped.
|
23 |
+
If you need to persist data with a longer lifetime than the Space itself, you can:
|
24 |
+
|
25 |
+
Subscribe to a persistent storage upgrade
|
26 |
+
https://huggingface.co/docs/hub/spaces-storage#persistent-storage
|
27 |
+
|
28 |
+
Use a dataset as a data store
|
29 |
+
https://huggingface.co/docs/hub/spaces-storage#dataset-storage
|
30 |
+
!!!!!
|
31 |
+
|
32 |
+
Persistent storage
|
33 |
+
You can upgrade your Space to have access to persistent disk space from the Settings tab.
|
34 |
+
|
35 |
+
|
36 |
+
You can choose the storage tier of your choice to access disk space that persists across restarts of your Space.
|
37 |
+
|
38 |
+
Persistent storage acts like traditional disk storage mounted on /data.
|
39 |
+
|
40 |
+
That means you can read and write to this storage from your Space as you would with a traditional hard drive or SSD.
|
41 |
+
|
42 |
+
Persistent disk space can be upgraded to a larger tier at will, though it cannot be downgraded to a smaller tier. If you wish to use a smaller persistent storage tier, you must delete your current (larger) storage first.
|
43 |
+
|
44 |
+
If you are using Hugging Face open source libraries, you can make your Space restart faster by setting the environment variable HF_HOME to /data/.huggingface. Libraries like transformers, diffusers, datasets and others use that environment variable to cache any assets downloaded from the Hugging Face Hub. Setting this variable to the persistent storage path will make sure that cached resources do not need to be re-downloaded when the Space is restarted.
|
45 |
+
|
46 |
+
WARNING: all data stored in the storage is lost when you delete it.
|
47 |
+
Persistent storage specs
|
48 |
+
Here are the specifications for each of the different upgrade options:
|
49 |
+
|
50 |
+
Tier Disk space Persistent Monthly Price
|
51 |
+
Free tier 50GB No (ephemeral) Free!
|
52 |
+
Small 20GB Yes $5
|
53 |
+
Medium 150 GB Yes $25
|
54 |
+
Large 1TB Yes $100
|
55 |
+
Billing
|
56 |
+
Billing of Spaces is based on hardware usage and is computed by the minute: you get charged for every minute the Space runs on the requested hardware, regardless of whether the Space is used.
|
57 |
+
|
58 |
+
Persistent storage upgrades are billed until deleted, even when the Space is not running and regardless of Space status or running state.
|
59 |
+
|
60 |
+
Additional information about billing can be found in the dedicated Hub-wide section.
|
61 |
+
|
62 |
+
Dataset storage
|
63 |
+
If you need to persist data that lives longer than your Space, you could use a dataset repo.
|
64 |
+
|
65 |
+
You can find an example of persistence here, which uses the huggingface_hub library for programmatically uploading files to a dataset repository. This Space example along with this guide will help you define which solution fits best your data type.
|
66 |
+
|
67 |
+
Visit the datasets library documentation and the huggingface_hub client library documentation for more information on how to programmatically interact with dataset repos.
|
68 |
+
|
69 |
+
|
70 |
+
...
|
71 |
+
|
72 |
+
|
73 |
HF Spaces has an ephermal, non-persistent file storage!
|
74 |
If you save a file from within your (streamlit) application,
|
75 |
that file is not kept when your session has ended.
|
|
|
545 |
- Voorbeeld vragen die je aan de AI kunt stellen
|
546 |
- Etc
|
547 |
|
548 |
+
ZIE:
|
549 |
+
STREAMLIT MULTIPAGE APP STARTER KIT - TBV NON-TOXIC GLAZE ADVISOR APP - 02-2024 https://dataprofessor-multipage-app-starter-kit--home-1qqhko.streamlit.app/
|
550 |
+
|
551 |
+
https://dataprofessor-multipage-app-starter-kit--home-1qqhko.streamlit.app/
|
552 |
+
|
553 |
+
|
554 |
+
|
555 |
+
dataprofessor/multipage-app-starter-kit
|
556 |
+
https://github.com/dataprofessor/multipage-app-starter-kit
|
557 |
+
|
558 |
+
https://dataprofessor-multipage-app-starter-kit--home-1qqhko.streamlit.app/
|
559 |
+
|
560 |
+
https://docs.streamlit.io/library/advanced-features/multipage-apps
|
561 |
+
https://docs.streamlit.io/get-started/tutorials/create-a-multipage-app
|
562 |
+
https://discuss.streamlit.io/t/put-logo-and-title-above-on-top-of-page-navigation-in-sidebar-of-multipage-app/28213?u=dataprofessor
|
563 |
+
|
564 |
+
|
565 |
+
TOEPASSEN OP:
|
566 |
+
https://huggingface.co/spaces/JBHF/NonToxicGlazeAdvisor_Chat_with_Docs_Groq_Edition_1?logs=container
|
567 |
+
|
568 |
+
https://jbhf-nontoxicglazeadvisor-chat-with-docs-groq-edition-1.hf.space/?embed=true&embed_options=show_toolbar#adviseur-voor-niet-giftige-glazuren
|
569 |
+
|
570 |
+
|
571 |
+
EVERNOTE :
|
572 |
+
https://www.evernote.com/shard/s313/nl/41973486/a93e39ae-d0f2-4e03-a6ec-873703f72552/
|
573 |
+
STREAMLIT MULTIPAGE APP STARTER KIT - TBV NON-TOXIC GLAZE ADVISOR APP - 02-2024 https://dataprofessor-multipage-app-starter-kit--home-1qqhko.streamlit.app/
|
574 |
+
|
575 |
+
|
576 |
+
|
577 |
+
03-04-2024
|
578 |
+
|
579 |
+
|
580 |
+
|
581 |
|
582 |
|
583 |
- Show a set of example questions to the user
|