Spaces:
Sleeping
Sleeping
Update text_processing.py
Browse files- text_processing.py +2 -2
text_processing.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
from llama_cpp import Llama
|
| 2 |
from huggingface_hub import hf_hub_download
|
| 3 |
-
import spaces
|
| 4 |
import functools
|
| 5 |
# Download the single GGUF shard by its repo path:
|
| 6 |
|
|
@@ -14,8 +14,8 @@ import functools
|
|
| 14 |
# use_mlock=False,
|
| 15 |
# )
|
| 16 |
# print("Llama backend initialized successfully!")
|
|
|
|
| 17 |
@functools.lru_cache(maxsize=1)
|
| 18 |
-
@spaces.CPU
|
| 19 |
def llm_gpu():
|
| 20 |
|
| 21 |
model_path = hf_hub_download(
|
|
|
|
| 1 |
from llama_cpp import Llama
|
| 2 |
from huggingface_hub import hf_hub_download
|
| 3 |
+
# import spaces
|
| 4 |
import functools
|
| 5 |
# Download the single GGUF shard by its repo path:
|
| 6 |
|
|
|
|
| 14 |
# use_mlock=False,
|
| 15 |
# )
|
| 16 |
# print("Llama backend initialized successfully!")
|
| 17 |
+
# @spaces.CPU
|
| 18 |
@functools.lru_cache(maxsize=1)
|
|
|
|
| 19 |
def llm_gpu():
|
| 20 |
|
| 21 |
model_path = hf_hub_download(
|