Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,11 @@ from langchain_community.utilities import WikipediaAPIWrapper
|
|
| 10 |
from langchain_community.tools import WikipediaQueryRun
|
| 11 |
from langchain_experimental.utilities import PythonREPL
|
| 12 |
|
| 13 |
-
llm =
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
class SmallerQuestions(BaseModel):
|
| 16 |
questions = list[str]
|
|
|
|
| 10 |
from langchain_community.tools import WikipediaQueryRun
|
| 11 |
from langchain_experimental.utilities import PythonREPL
|
| 12 |
|
| 13 |
+
llm = AutoModelForCausalLM.from_pretrained("zephyr-7b-beta.Q4_K_S.gguf",
|
| 14 |
+
model_type='mistral',
|
| 15 |
+
max_new_tokens = 1096,
|
| 16 |
+
threads = 3,
|
| 17 |
+
)
|
| 18 |
|
| 19 |
class SmallerQuestions(BaseModel):
|
| 20 |
questions = list[str]
|