Update app.py
Browse files
app.py
CHANGED
|
@@ -9,11 +9,12 @@ from langchain_core.callbacks import StreamingStdOutCallbackHandler
|
|
| 9 |
callbacks = [StreamingStdOutCallbackHandler()]
|
| 10 |
|
| 11 |
llm = LlamaCpp(
|
| 12 |
-
model_path="
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
|
|
|
| 17 |
)
|
| 18 |
|
| 19 |
template = """You are the Finiantial expert:
|
|
|
|
| 9 |
callbacks = [StreamingStdOutCallbackHandler()]
|
| 10 |
|
| 11 |
llm = LlamaCpp(
|
| 12 |
+
model_path="unsloth.Q5_K_M.gguf",
|
| 13 |
+
temperature=0.75,
|
| 14 |
+
max_tokens=30,
|
| 15 |
+
top_p=4,
|
| 16 |
+
callback_manager=callbacks,
|
| 17 |
+
verbose=True, # Verbose is required to pass to the callback manager
|
| 18 |
)
|
| 19 |
|
| 20 |
template = """You are the Finiantial expert:
|