Spaces:
Runtime error
Runtime error
Upload 2 files
Browse files- .huggingface/spaces/config.yaml +11 -0
- rp_config.json +1 -1
.huggingface/spaces/config.yaml
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# .huggingface/spaces/config.yaml
|
| 2 |
+
|
| 3 |
+
# Define the pre_build_hook to execute shell commands before the build
|
| 4 |
+
pre_build_hook: |
|
| 5 |
+
# Create a directory to store the downloaded file
|
| 6 |
+
mkdir -p downloads
|
| 7 |
+
mkdir -p cache
|
| 8 |
+
|
| 9 |
+
# Download the file using wget
|
| 10 |
+
wget -O downloads/causallm_7b.Q5_K_M.gguf "https://huggingface.co/TheBloke/CausalLM-7B-GGUF/resolve/main/causallm_7b.Q5_K_M.gguf?download=true"
|
| 11 |
+
|
rp_config.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"setting_path": {
|
| 3 |
-
"value": "
|
| 4 |
},
|
| 5 |
"role_usr": {
|
| 6 |
"value": "无忌"
|
|
|
|
| 1 |
{
|
| 2 |
"setting_path": {
|
| 3 |
+
"value": "downloads/causallm_7b.Q5_K_M.gguf"
|
| 4 |
},
|
| 5 |
"role_usr": {
|
| 6 |
"value": "无忌"
|