Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,6 @@ def load_model():
|
|
| 16 |
model_path = hf_hub_download(
|
| 17 |
repo_id=model_name_or_path,
|
| 18 |
filename=model_basename,
|
| 19 |
-
#cache_dir= '/content/models' # Directory for the model
|
| 20 |
)
|
| 21 |
model = Llama(model_path, embedding=True)
|
| 22 |
|
|
@@ -32,7 +31,6 @@ def load_model():
|
|
| 32 |
model_path_model = hf_hub_download(
|
| 33 |
repo_id=model_2_name,
|
| 34 |
filename=model_2base_name,
|
| 35 |
-
#cache_dir= '/content/models' # Directory for the model
|
| 36 |
)
|
| 37 |
callback_manager = CallbackManager([StreamingStdOutCallbackHandler()])
|
| 38 |
llm = LlamaCpp(
|
|
|
|
| 16 |
model_path = hf_hub_download(
|
| 17 |
repo_id=model_name_or_path,
|
| 18 |
filename=model_basename,
|
|
|
|
| 19 |
)
|
| 20 |
model = Llama(model_path, embedding=True)
|
| 21 |
|
|
|
|
| 31 |
model_path_model = hf_hub_download(
|
| 32 |
repo_id=model_2_name,
|
| 33 |
filename=model_2base_name,
|
|
|
|
| 34 |
)
|
| 35 |
callback_manager = CallbackManager([StreamingStdOutCallbackHandler()])
|
| 36 |
llm = LlamaCpp(
|