Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,8 +4,7 @@ from langchain.llms import HuggingFaceEndpoint
|
|
| 4 |
|
| 5 |
#Taking question as input from user
|
| 6 |
def load_answer(question):
|
| 7 |
-
llm=HuggingFaceEndpoint(
|
| 8 |
-
repo_id="mistralai/Mistral-7B-Instruct-v0.2",temperature=1.0)
|
| 9 |
answer=llm.invoke(question)
|
| 10 |
return answer
|
| 11 |
|
|
|
|
| 4 |
|
| 5 |
#Taking question as input from user
|
| 6 |
def load_answer(question):
|
| 7 |
+
llm=HuggingFaceEndpoint(repo_id="mistralai/Mistral-7B-Instruct-v0.2")
|
|
|
|
| 8 |
answer=llm.invoke(question)
|
| 9 |
return answer
|
| 10 |
|